-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force state refresh on redirect back from app success page
- Loading branch information
1 parent
8d413cc
commit c439d63
Showing
1 changed file
with
9 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
); | ||
|
@@ -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> | ||
); | ||
|
@@ -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> | ||
); | ||
|