refactor: removes unused sso logout button
This commit is contained in:
parent
4f974a0b70
commit
aca229b3d3
1 changed files with 0 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
||||||
import { signOut } from '@/auth';
|
|
||||||
import { IconButton } from '@/components/icon-button';
|
|
||||||
import { faDoorOpen } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
|
|
||||||
export function Logout() {
|
|
||||||
return (
|
|
||||||
<form
|
|
||||||
action={async () => {
|
|
||||||
'use server';
|
|
||||||
await signOut({ redirectTo: '/login' });
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<IconButton type='submit' variant='destructive' icon={faDoorOpen}>
|
|
||||||
Sign Out
|
|
||||||
</IconButton>
|
|
||||||
</form>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue