NORY-36: add logout button to /unauthorised
This commit is contained in:
parent
08e65e0ec3
commit
faa3485ca8
1 changed files with 11 additions and 2 deletions
|
@ -1,11 +1,20 @@
|
||||||
import { ErrorDisplay } from '@/components/error';
|
'use client';
|
||||||
|
|
||||||
export default async function UnauthorizedPage() {
|
import { ErrorDisplay } from '@/components/error';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { LogoutLink } from '@/ory';
|
||||||
|
import { LogOut } from 'lucide-react';
|
||||||
|
|
||||||
|
export default function UnauthorizedPage() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-background min-h-screen p-16">
|
<div className="bg-background min-h-screen p-16">
|
||||||
<ErrorDisplay
|
<ErrorDisplay
|
||||||
title="Unauthorised"
|
title="Unauthorised"
|
||||||
message="You are unauthorised to access this application!"/>
|
message="You are unauthorised to access this application!"/>
|
||||||
|
<Button className="mt-8 space-x-2" onClick={LogoutLink()}>
|
||||||
|
<LogOut className="h-4 w-4"/>
|
||||||
|
<span>Logout</span>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue