generated from xgeekshq/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add layout to display the team page * fix: add requested changes
- Loading branch information
1 parent
9c37ca3
commit 7fc0722
Showing
28 changed files
with
387 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
frontend/src/components/Teams/CreateTeam/CardEnd/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
|
||
import Flex from 'components/Primitives/Flex'; | ||
import PopoverRoleSettings from '../CardMember/RoleSettings'; | ||
import RoleDescription from './RoleDescription'; | ||
|
||
type CardEndCreateTeamProps = { | ||
role: string; | ||
isTeamCreator?: boolean; | ||
userId: string; | ||
}; | ||
|
||
const CardEndCreateTeam = ({ role, isTeamCreator, userId }: CardEndCreateTeamProps) => { | ||
return ( | ||
<Flex align="center" css={{ width: '23%' }} justify="end"> | ||
<RoleDescription role={role} /> | ||
{!isTeamCreator && <PopoverRoleSettings userId={userId} />} | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default CardEndCreateTeam; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
|
||
import Flex from 'components/Primitives/Flex'; | ||
import RoleDescription from '../../CreateTeam/CardEnd/RoleDescription'; | ||
import PopoverRoleSettings from '../../CreateTeam/CardMember/RoleSettings'; | ||
|
||
type CardEndTeamProps = { | ||
role: string; | ||
isTeamMemberOrStakeholder?: boolean; | ||
userId: string; | ||
isTeamCreator?: boolean; | ||
}; | ||
|
||
const CardEndTeam = ({ | ||
role, | ||
isTeamMemberOrStakeholder, | ||
userId, | ||
isTeamCreator | ||
}: CardEndTeamProps) => { | ||
return ( | ||
<Flex align="center" css={{ width: '$237' }} justify="end"> | ||
<RoleDescription role={role} /> | ||
{!isTeamMemberOrStakeholder && !isTeamCreator && ( | ||
<PopoverRoleSettings userId={userId} /> | ||
)} | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default CardEndTeam; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import Breadcrumb from 'components/breadcrumb/Breadcrumb'; | ||
import Flex from 'components/Primitives/Flex'; | ||
import Text from 'components/Primitives/Text'; | ||
import { BreadcrumbType } from 'types/board/Breadcrumb'; | ||
import { TitleSection } from './styles'; | ||
|
||
type TeamHeaderProps = { | ||
title: string; | ||
}; | ||
|
||
const TeamHeader = ({ title }: TeamHeaderProps) => { | ||
// Set breadcrumbs | ||
const breadcrumbItems: BreadcrumbType = [ | ||
{ | ||
title: 'Teams', | ||
link: '/teams' | ||
} | ||
]; | ||
|
||
breadcrumbItems.push({ | ||
title, | ||
isActive: true | ||
}); | ||
return ( | ||
<Flex align="center" justify="between"> | ||
<Flex direction="column"> | ||
<Flex align="center" css={{ pb: '$12' }}> | ||
<Breadcrumb items={breadcrumbItems} /> | ||
</Flex> | ||
<TitleSection> | ||
<Text heading="1">{title}</Text> | ||
</TitleSection> | ||
</Flex> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default TeamHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { styled } from 'styles/stitches/stitches.config'; | ||
|
||
const StyledHeader = styled('div', { | ||
width: '100%', | ||
maxHeight: '108px', | ||
|
||
position: 'relative', | ||
|
||
padding: '$24 $37', | ||
borderBottomStyle: 'solid', | ||
borderBottomWidth: 1, | ||
borderBottomColor: '$primary100', | ||
|
||
backgroundColor: '$surface' | ||
}); | ||
|
||
const TitleSection = styled('section', { | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '$10' | ||
}); | ||
|
||
export { StyledHeader, TitleSection }; |
Oops, something went wrong.