mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 23:36:39 +00:00
router refresh on logout
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user