feat: update login and logout components and labels
This commit is contained in:
parent
4d781775e3
commit
486e8cc1f8
6 changed files with 4 additions and 4 deletions
|
@ -1,18 +0,0 @@
|
|||
import { signOut } from '@/auth';
|
||||
import Button from '../button';
|
||||
import { faDoorOpen } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
export function Logout() {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
'use server';
|
||||
await signOut({ redirectTo: '/login' });
|
||||
}}
|
||||
>
|
||||
<Button type='submit' mode='primary' icon={faDoorOpen}>
|
||||
Sign Out
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue