Skip to content

Commit

Permalink
Merge pull request #2248 from bryanjenningz/remove-full-page-load-das…
Browse files Browse the repository at this point in the history
…hboard-link

Remove full page load link from confirm/[token] page
  • Loading branch information
bryanjenningz authored Sep 4, 2022
2 parents 33c2467 + 272f501 commit e32c673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion __tests__/pages/__snapshots__/reset.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ exports[`ResetPassword Page Should render confirm success on success 1`] = `
<a
class="btn btn-primary btn-lg mb-3"
href="/curriculum"
role="button"
>
Continue to dashboard
</a>
Expand Down
7 changes: 4 additions & 3 deletions pages/confirm/[token].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useMutation } from '@apollo/client'
import React from 'react'
import { useRouter } from 'next/router'
import { Formik, Form, Field } from 'formik'
import Link from 'next/link'
import UPDATE_PASSWORD from '../../graphql/queries/updatePassword'
import NavLink from '../../components/NavLink'
import Input from '../../components/Input'
Expand All @@ -16,9 +17,9 @@ const initialValues = {

const ConfirmSuccess: React.FC = () => (
<Card type="success" title="Password has been set!">
<a className="btn btn-primary btn-lg mb-3" role="button" href="/curriculum">
Continue to dashboard
</a>
<Link href="/curriculum">
<a className="btn btn-primary btn-lg mb-3">Continue to dashboard</a>
</Link>
</Card>
)

Expand Down

1 comment on commit e32c673

@vercel
Copy link

@vercel vercel bot commented on e32c673 Sep 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.