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
24
src/components/user/sso-login-button.tsx
Normal file
24
src/components/user/sso-login-button.tsx
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { signIn } from '@/auth';
|
||||
import Button from '../button';
|
||||
import { faOpenid } from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
export default function Login({
|
||||
provider,
|
||||
providerDisplayName,
|
||||
}: {
|
||||
provider: string;
|
||||
providerDisplayName: string;
|
||||
}) {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
'use server';
|
||||
await signIn(provider);
|
||||
}}
|
||||
>
|
||||
<Button type='submit' mode='warning' icon={faOpenid} width={250}>
|
||||
Login with {providerDisplayName}
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue