🎨 style: add github icon

This commit is contained in:
Wahyu Kurniawan 2024-02-28 21:27:04 +07:00
parent d52a34da35
commit 075cec58e5
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33
2 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,7 @@ export const RepositoryList = ({ octokit }: RepositoryListProps) => {
options={options} options={options}
placeholder="Select a repository" placeholder="Select a repository"
value={selectedAccount} value={selectedAccount}
leftIcon={selectedAccount ? <GithubIcon /> : undefined}
rightIcon={<ChevronGrabberHorizontal />} rightIcon={<ChevronGrabberHorizontal />}
onChange={(value) => setSelectedAccount(value as SelectOption)} onChange={(value) => setSelectedAccount(value as SelectOption)}
/> />

View File

@ -375,6 +375,8 @@ export const Select = ({
'w-6': isMultipleHasValueButNotSearchable && !hideValues, 'w-6': isMultipleHasValueButNotSearchable && !hideValues,
// Add margin to the X icon // Add margin to the X icon
'ml-6': isMultipleHasValueButNotSearchable && clearable, 'ml-6': isMultipleHasValueButNotSearchable && clearable,
// Add padding if there's a left icon
'pl-7': leftIcon,
}, },
)} )}
/> />