diff --git a/packages/frontend/src/components/projects/create/ProjectRepoCard.tsx b/packages/frontend/src/components/projects/create/ProjectRepoCard.tsx index c3e88b9a..fbcf50b4 100644 --- a/packages/frontend/src/components/projects/create/ProjectRepoCard.tsx +++ b/packages/frontend/src/components/projects/create/ProjectRepoCard.tsx @@ -7,6 +7,7 @@ import { Chip, IconButton, Spinner } from '@material-tailwind/react'; import { relativeTimeISO } from '../../../utils/time'; import { GitRepositoryDetails } from '../../../types'; import { useGQLClient } from '../../../context/GQLClientContext'; +import { GithubIcon, LockIcon } from 'components/shared/CustomIcon'; interface ProjectRepoCardProps { repository: GitRepositoryDetails; @@ -47,16 +48,18 @@ const ProjectRepoCard: React.FC = ({ repository }) => { className="group flex items-center gap-4 text-gray-500 text-xs hover:bg-gray-100 p-2 cursor-pointer" onClick={createProject} > -
^
+
+ +
{repository.full_name} {repository.visibility === 'private' && ( } /> )}
diff --git a/packages/frontend/src/components/projects/create/RepositoryList.tsx b/packages/frontend/src/components/projects/create/RepositoryList.tsx index 8b29967e..f09e61d6 100644 --- a/packages/frontend/src/components/projects/create/RepositoryList.tsx +++ b/packages/frontend/src/components/projects/create/RepositoryList.tsx @@ -9,6 +9,7 @@ import SearchBar from '../../SearchBar'; import ProjectRepoCard from './ProjectRepoCard'; import { GitOrgDetails, GitRepositoryDetails } from '../../../types'; import AsyncSelect from '../../shared/AsyncSelect'; +import { GithubIcon } from 'components/shared/CustomIcon'; const DEFAULT_SEARCHED_REPO = ''; const REPOS_PER_PAGE = 5; @@ -108,7 +109,7 @@ const RepositoryList = ({ octokit }: RepositoryListProps) => { return (
-
+
{ > {accounts.map((account) => ( ))}
-
+
setSearchedRepo(event.target.value)} diff --git a/packages/frontend/src/components/shared/CustomIcon/GithubIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/GithubIcon.tsx new file mode 100644 index 00000000..4a0f59ab --- /dev/null +++ b/packages/frontend/src/components/shared/CustomIcon/GithubIcon.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { CustomIcon, CustomIconProps } from './CustomIcon'; + +export const GithubIcon: React.FC = (props) => { + return ( + + + + ); +}; diff --git a/packages/frontend/src/components/shared/CustomIcon/LockIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/LockIcon.tsx new file mode 100644 index 00000000..e3a588df --- /dev/null +++ b/packages/frontend/src/components/shared/CustomIcon/LockIcon.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { CustomIcon, CustomIconProps } from './CustomIcon'; + +export const LockIcon: React.FC = (props) => { + return ( + + + + ); +}; diff --git a/packages/frontend/src/components/shared/CustomIcon/index.ts b/packages/frontend/src/components/shared/CustomIcon/index.ts index 471d8272..5de3702d 100644 --- a/packages/frontend/src/components/shared/CustomIcon/index.ts +++ b/packages/frontend/src/components/shared/CustomIcon/index.ts @@ -22,6 +22,8 @@ export * from './EllipseIcon'; export * from './EllipsesIcon'; export * from './SnowballIcon'; export * from './NotificationBellIcon'; +export * from './GithubIcon'; +export * from './LockIcon'; export * from './PencilIcon'; export * from './CheckRadioIcon'; export * from './ChevronDownIcon';