Skip to content

Commit

Permalink
Merge pull request #624 from sandboxnu/daisy/conditional-render-email…
Browse files Browse the repository at this point in the history
…-verified

Conditional rendering for 'email not verified' in account overview
  • Loading branch information
daisykucharski authored Sep 21, 2023
2 parents 5c390c0 + 98f7f8c commit 82f0d05
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/frontend-v2/components/Header/AccountOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,19 @@ export const AccountOverview: React.FC<AccountOverviewProps> = ({
borderWidth="2px"
borderRadius="md"
/>
<Flex alignItems="center" mt="xs" columnGap="xs">
<GraduateToolTip
placement="top"
label="Your email is not verified yet. If you do not verify your
{!student.isEmailConfirmed && (
<Flex alignItems="center" mt="xs" columnGap="xs">
<GraduateToolTip
placement="top"
label="Your email is not verified yet. If you do not verify your
email, you cannot recover your account if you forget your
password."
>
<WarningTwoIcon color="states.warning.main" />
</GraduateToolTip>
<ResendEmailVerificationLink label="Send Verification Email" />
</Flex>
>
<WarningTwoIcon color="states.warning.main" />
</GraduateToolTip>
<ResendEmailVerificationLink label="Send Verification Email" />
</Flex>
)}
</FormControl>
</Flex>
</ModalBody>
Expand Down

0 comments on commit 82f0d05

Please sign in to comment.