mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-22 11:45:06 +02:00
router refresh on logout
This commit is contained in:
parent
82192fa180
commit
a2bf3ba7e7
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default async function AuthLayout({ children }: AuthLayoutProps) {
|
||||||
<>
|
<>
|
||||||
{user && (
|
{user && (
|
||||||
<UserProvider user={user}>
|
<UserProvider user={user}>
|
||||||
<div>
|
<div className="p-3">
|
||||||
<ProfileIcon />
|
<ProfileIcon />
|
||||||
</div>
|
</div>
|
||||||
</UserProvider>
|
</UserProvider>
|
||||||
|
|
|
@ -57,6 +57,7 @@ export default function ProfileIcon() {
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
router.push("/auth/login");
|
router.push("/auth/login");
|
||||||
|
router.refresh();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue