Refresh after logout

This commit is contained in:
Jorge Vargas 2025-02-10 23:10:38 -06:00
parent af4c629047
commit b701867d7d

View file

@ -3,8 +3,13 @@ import Button from 'components/Button'
import { signOut } from 'utils/auth-client' import { signOut } from 'utils/auth-client'
export default function LogoutBtn() { export default function LogoutBtn() {
async function handleClick() {
await signOut()
location.reload()
}
return ( return (
<Button className='rounded-t-none' onClick={() => signOut()}> <Button className='rounded-t-none' onClick={handleClick}>
{m.logout()} {m.logout()}
</Button> </Button>
) )