From 95285d30dd554fb297716a05c4193b06f9c7dcf3 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Mon, 26 Feb 2024 23:50:42 -0500 Subject: [PATCH] private repo + repo --- .../projects/create/ProjectRepoCard.tsx | 9 +++++--- .../shared/CustomIcon/GithubIcon.tsx | 21 +++++++++++++++++++ .../components/shared/CustomIcon/LockIcon.tsx | 21 +++++++++++++++++++ .../src/components/shared/CustomIcon/index.ts | 2 ++ 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 packages/frontend/src/components/shared/CustomIcon/GithubIcon.tsx create mode 100644 packages/frontend/src/components/shared/CustomIcon/LockIcon.tsx 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/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 d5a65355..7cc17471 100644 --- a/packages/frontend/src/components/shared/CustomIcon/index.ts +++ b/packages/frontend/src/components/shared/CustomIcon/index.ts @@ -22,3 +22,5 @@ export * from './EllipseIcon'; export * from './EllipsesIcon'; export * from './SnowballIcon'; export * from './NotificationBellIcon'; +export * from './GithubIcon'; +export * from './LockIcon';