Skip to content

Commit

Permalink
Merge pull request #167 from github-community-projects/sutterj/unauth…
Browse files Browse the repository at this point in the history
…-button

feat: add button on unauth page
  • Loading branch information
sutterj authored Jun 12, 2024
2 parents 1938254 + 53dd208 commit 86c6348
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/app/auth/error/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
'use client'

import { MarkGithubIcon } from '@primer/octicons-react'
import { Box, Octicon, Text } from '@primer/react'
import { Box, Button, Octicon, Text } from '@primer/react'
import { useRouter } from 'next/navigation'

const ErrorPage = () => {
const router = useRouter()

return (
<Box
sx={{
Expand Down Expand Up @@ -42,6 +45,15 @@ const ErrorPage = () => {
</Text>
</Box>
</Box>
<Box sx={{ marginTop: '15px' }}>
<Button
onClick={() => {
router.push('/')
}}
>
Back to sign in
</Button>
</Box>
</Box>
</Box>
)
Expand Down

0 comments on commit 86c6348

Please sign in to comment.