-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { useNavigate } from 'react-router-dom' | ||
import { Button } from '@/components/custom/button' | ||
|
||
export default function UnauthorisedError() { | ||
const navigate = useNavigate() | ||
return ( | ||
<div className='h-svh'> | ||
<div className='m-auto flex h-full w-full flex-col items-center justify-center gap-2'> | ||
<h1 className='text-[7rem] font-bold leading-tight'>401</h1> | ||
<span className='font-medium'> | ||
Oops! You don't have permission to access this page. | ||
</span> | ||
<p className='text-center text-muted-foreground'> | ||
It looks like you tried to access a resource that requires proper | ||
authentication. <br /> | ||
Please log in with the appropriate credentials. | ||
</p> | ||
<div className='mt-6 flex gap-4'> | ||
<Button variant='outline' onClick={() => navigate(-1)}> | ||
Go Back | ||
</Button> | ||
<Button onClick={() => navigate('/')}>Back to Home</Button> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
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