This commit is contained in:
eric
2026-03-12 04:11:29 -05:00
parent 6f4e287ca3
commit 528044db7d
6 changed files with 21 additions and 52 deletions

View File

@@ -424,6 +424,12 @@ export default function Home() {
}
}, [paidType]);
const handleLogout = useCallback(async () => {
const { pbLogout } = await import("@/app/lib/pocketbase");
await pbLogout();
clearAllStorage();
}, [clearAllStorage]);
const isLoggedIn = paidType === "vip";
if (loading) {
@@ -435,12 +441,6 @@ export default function Home() {
);
}
const handleLogout = useCallback(async () => {
const { pbLogout } = await import("@/app/lib/pocketbase");
await pbLogout();
clearAllStorage();
}, [clearAllStorage]);
return (
<>
<VipLayout isLoggedIn={isLoggedIn} userName={userName} onLogout={handleLogout}>