Skip to content

Commit

Permalink
Force state refresh on redirect back from app success page
Browse files Browse the repository at this point in the history
  • Loading branch information
VictiniX888 committed Oct 8, 2024
1 parent 8d413cc commit c439d63
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions apps/dashboard/pages/apply-2024/success/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ export function Index() {
<Container>
<CenterContainer>
<Heading>Sorry, you are not allowed to access this page.</Heading>
<Link
href={'/'}
passHref
anchortagpropsoverride={{ target: '_self' }}
>
<Button color="black">Go back to home</Button>
</Link>
<RedButton onClick={() => window.open('/', '_self')}>
Go back to home
</RedButton>
</CenterContainer>
</Container>
);
Expand All @@ -65,13 +61,9 @@ export function Index() {
<a href="mailto:[email protected]">[email protected]</a> for further
assistance.
</Heading>
<Link
href={'/'}
passHref
anchortagpropsoverride={{ target: '_self' }}
>
<RedButton>Go back to home</RedButton>
</Link>
<RedButton onClick={() => window.open('/', '_self')}>
Go back to home
</RedButton>
</CenterContainer>
</Container>
);
Expand All @@ -85,9 +77,9 @@ export function Index() {
applications and will be sending out the acceptances in phases after
the application period closes.
</Heading>
<Link href={'/'} passHref anchortagpropsoverride={{ target: '_self' }}>
<RedButton>Go back to home</RedButton>
</Link>
<RedButton onClick={() => window.open('/', '_self')}>
Go back to home
</RedButton>
</CenterContainer>
</Container>
);
Expand Down

0 comments on commit c439d63

Please sign in to comment.