Skip to content

Commit

Permalink
fix: beta landing page don't redirect to the app when avoid discord (#…
Browse files Browse the repository at this point in the history
…269)

**Describe the pull request**

When a User access to the beta landing page, and want to access to the
app without link her Discord account, the page don't redirect the user
to the application and a refresh is needed

**Checklist**

- [x] I have linked the relative issue to this pull request
- [x] I have made the modifications or added tests related to my PR
- [x] I have added/updated the documentation for my RP
- [x] I put my PR in Ready for Review only when all the checklist is
checked

**Breaking changes ?**
no
  • Loading branch information
42atomys authored Nov 25, 2022
1 parent 3655508 commit 4435893
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/ui/src/pages/beta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,16 @@ export const IndexPage: NextPage<PageProps, {}> = ({ me }) => {
<i className="fa-brands fa-discord" />
<span className="ml-2">Link Discord</span>
</button>
<Link href="/">
<button className="py-4 px-6 flex items-center grow-0 hover:grow rounded-lg justify-center text-white bg-slate-900 font-medium border-2 border-slate-900 hover:bg-slate-900 hover:border-indigo-500 focus:px-14 focus:border-indigo-500 focus:bg-indigo-500 transition-all">
<Link href="/" passHref={true}>
<button className="py-4 px-6 flex items-center grow-0 hover:grow rounded-lg justify-center text-white bg-slate-800/40 font-medium border-2 border-slate-900 hover:bg-slate-900 hover:border-indigo-500 focus:px-14 focus:border-indigo-500 focus:bg-indigo-500 transition-all">
<Image
src="/assets/images/logo.svg"
alt="logo"
width={20}
height={20}
quality={100}
/>
<span className="ml-2">Go to the app</span>
<span className="ml-2">Go to the app now</span>
</button>
</Link>
</div>
Expand All @@ -277,7 +277,7 @@ export const IndexPage: NextPage<PageProps, {}> = ({ me }) => {
</small>

<i className="block mt-2 text-sm">
You can access the app without linking your Discord account.
Link your Discord account will add you to the Discord server.
</i>
</div>
)}
Expand Down

0 comments on commit 4435893

Please sign in to comment.