diff --git a/frontend/src/component/personalDashboard/ContentGridNoProjects.tsx b/frontend/src/component/personalDashboard/ContentGridNoProjects.tsx deleted file mode 100644 index 30c01b2952..0000000000 --- a/frontend/src/component/personalDashboard/ContentGridNoProjects.tsx +++ /dev/null @@ -1,114 +0,0 @@ -import { Typography, styled } from '@mui/material'; -import { AvatarGroupFromOwners } from 'component/common/AvatarGroupFromOwners/AvatarGroupFromOwners'; -import type { PersonalDashboardSchemaAdminsItem } from 'openapi/models/personalDashboardSchemaAdminsItem'; -import type { PersonalDashboardSchemaProjectOwnersItem } from 'openapi/models/personalDashboardSchemaProjectOwnersItem'; -import { Link } from 'react-router-dom'; -import { - ContentGridContainer, - EmptyGridItem, - ProjectGrid, - GridItem, -} from './SharedComponents'; -import { YourAdmins } from './YourAdmins'; - -const PaddedEmptyGridItem = styled(EmptyGridItem)(({ theme }) => ({ - padding: theme.spacing(4), -})); - -const TitleContainer = styled('div')(({ theme }) => ({ - display: 'flex', - flexDirection: 'row', - gap: theme.spacing(2), - alignItems: 'center', - fontSize: theme.spacing(1.75), - fontWeight: 'bold', -})); - -const NeutralCircleContainer = styled('span')(({ theme }) => ({ - width: '28px', - height: '28px', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - backgroundColor: theme.palette.neutral.border, - borderRadius: '50%', -})); - -const GridContent = styled('div')(({ theme }) => ({ - flexBasis: '50%', - padding: theme.spacing(4, 2), - display: 'flex', - gap: theme.spacing(3), - flexDirection: 'column', -})); - -const BoxMainContent = styled('article')(({ theme }) => ({ - display: 'flex', - flexFlow: 'column', - gap: theme.spacing(2), -})); - -type Props = { - owners: PersonalDashboardSchemaProjectOwnersItem[]; - admins: PersonalDashboardSchemaAdminsItem[]; -}; - -export const ContentGridNoProjects: React.FC = ({ owners, admins }) => { - return ( - - - - - - You don't currently have access to any projects in - the system. - - - To get started, you can{' '} - - create your own project - - . Alternatively, you can review the available - projects in the system and ask the owner for access. - - - - - - - 1 - Contact Unleash admin - - - - - - - - 2 - Ask a project owner to add you to their project - - - {owners.length ? ( - <> -

Project owners in Unleash:

- - - ) : ( -

- There are no project owners in Unleash to - ask for access. -

- )} -
-
-
- - -
-
- ); -}; diff --git a/frontend/src/component/personalDashboard/PersonalDashboard.tsx b/frontend/src/component/personalDashboard/PersonalDashboard.tsx index e61a05c3de..7fb116d291 100644 --- a/frontend/src/component/personalDashboard/PersonalDashboard.tsx +++ b/frontend/src/component/personalDashboard/PersonalDashboard.tsx @@ -13,7 +13,6 @@ import { usePersonalDashboard } from 'hooks/api/getters/usePersonalDashboard/use import { usePersonalDashboardProjectDetails } from 'hooks/api/getters/usePersonalDashboard/usePersonalDashboardProjectDetails'; import useLoading from '../../hooks/useLoading'; import { MyProjects } from './MyProjects'; -import { ContentGridNoProjects } from './ContentGridNoProjects'; import ExpandMore from '@mui/icons-material/ExpandMore'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; import useSplashApi from 'hooks/api/actions/useSplashApi/useSplashApi';