mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Refresh after logout
This commit is contained in:
parent
af4c629047
commit
b701867d7d
1 changed files with 6 additions and 1 deletions
|
|
@ -3,8 +3,13 @@ import Button from 'components/Button'
|
|||
import { signOut } from 'utils/auth-client'
|
||||
|
||||
export default function LogoutBtn() {
|
||||
async function handleClick() {
|
||||
await signOut()
|
||||
location.reload()
|
||||
}
|
||||
|
||||
return (
|
||||
<Button className='rounded-t-none' onClick={() => signOut()}>
|
||||
<Button className='rounded-t-none' onClick={handleClick}>
|
||||
{m.logout()}
|
||||
</Button>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue