Get rid of custom components folder
This commit is contained in:
parent
c493ac342b
commit
6d16f67280
38 changed files with 34 additions and 34 deletions
|
|
@ -1,25 +0,0 @@
|
|||
import Form from 'next/form';
|
||||
|
||||
import { signOut } from '@/app/(auth)/auth';
|
||||
|
||||
export const SignOutForm = () => {
|
||||
return (
|
||||
<Form
|
||||
className="w-full"
|
||||
action={async () => {
|
||||
'use server';
|
||||
|
||||
await signOut({
|
||||
redirectTo: '/',
|
||||
});
|
||||
}}
|
||||
>
|
||||
<button
|
||||
type="submit"
|
||||
className="w-full text-left px-1 py-0.5 text-red-500"
|
||||
>
|
||||
Sign out
|
||||
</button>
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue