Skip to content

Commit

Permalink
feat(team): enable team create page and clean up commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbinoGeek committed Jun 21, 2024
1 parent 3c25ceb commit 1fb338d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/pages/team/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Box from '@mui/material/Box'
import Paper from '@mui/material/Paper'
import Typography from '@mui/material/Typography'
import TeamCreatePage from 'components/Team/Create'
import TeamMemberManagePage from 'components/Team/MemberManage'
import TeamMenu from 'components/Team/Menu'
import TeamProfilePage from 'components/Team/Profile'
Expand All @@ -15,18 +16,16 @@ const TeamPage = (): JSX.Element => {

const pageComponent = useMemo(() => {
switch (selectedPage) {
// case 'team/create':
// return <TeamCreatePage />
case 'members':
return <TeamMemberManagePage />
case 'profile':
return <TeamProfilePage />
case 'projects':
return <ProjectManagePage />
// case 'team/projects/create':
// return <ProjectCreatePage />
default:
return null
case 'create':
return <TeamCreatePage />
case 'members':
return <TeamMemberManagePage />
case 'profile':
return <TeamProfilePage />
case 'projects':
return <ProjectManagePage />
default:
return null
}
}, [selectedPage])

Expand Down

0 comments on commit 1fb338d

Please sign in to comment.