Skip to content

Commit

Permalink
fix: Remove unwanted greeting from the Profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
JeangelLF committed Oct 14, 2024
1 parent 77f30de commit 41e1406
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
27 changes: 0 additions & 27 deletions src/pages/pupil/ProfilePupil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,33 +223,6 @@ const ProfilePupil: React.FC<Props> = () => {
hideMenu={isMobileSM}
previousFallbackRoute="/settings"
headerTitle={t('profile.title')}
headerContent={
<Flex
marginX="auto"
width="100%"
maxWidth={ContainerWidth}
bg={HeaderStyle.bgColor}
alignItems={HeaderStyle.isMobile ? 'center' : 'flex-start'}
justifyContent="center"
paddingY={HeaderStyle.paddingY}
borderBottomRadius={16}
>
<Box
marginX="auto"
width="100%"
maxWidth={ContainerWidth}
bg={HeaderStyle.bgColor}
alignItems="center"
paddingY={space['2']}
borderBottomRadius={16}
>
<Box position="relative" />
<Heading color={colors.white} bold fontSize="xl">
{data?.me?.firstname}
</Heading>
</Box>
</Flex>
}
headerLeft={
!isMobileSM && (
<Stack alignItems="center" direction="row">
Expand Down
16 changes: 0 additions & 16 deletions src/pages/student/ProfileStudent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,6 @@ const ProfileStudent: React.FC<Props> = () => {
isLoading={loading}
previousFallbackRoute="/settings"
headerTitle={t('profile.title')}
headerContent={
<Flex
maxWidth={ContainerWidth}
marginX="auto"
width="85%"
bg={HeaderStyle.bgColor}
alignItems={HeaderStyle.isMobile ? 'center' : 'flex-start'}
justifyContent="center"
paddingY={HeaderStyle.paddingY}
borderBottomRadius={16}
>
<Heading color={colors.white} bold fontSize="xl">
{data?.me?.firstname}
</Heading>
</Flex>
}
headerLeft={
!isMobileSM && (
<Stack alignItems="center" direction="row">
Expand Down

0 comments on commit 41e1406

Please sign in to comment.