feat: added button styling and updated login layout
This commit is contained in:
parent
d86c86e137
commit
77ef7038d2
9 changed files with 196 additions and 29 deletions
15
src/components/user/logout-button.tsx
Normal file
15
src/components/user/logout-button.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { signOut } from '@/auth';
|
||||
import Button from '../Button';
|
||||
|
||||
export function Logout() {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
'use server';
|
||||
await signOut();
|
||||
}}
|
||||
>
|
||||
<Button type='submit'>Sign Out</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue