Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steeeee0223 committed Dec 31, 2024
1 parent 83114bd commit 33d457b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/playground/src/app/(platform)/(auth)/sign-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useRouter } from "next/navigation";

import { usePlatformStore, useSettingsStore } from "@swy/notion";
import { usePlatformStore, useSettingsStore2 } from "@swy/notion";
import { IconBlock } from "@swy/ui/shared";

import { accounts, githubAccounts } from "~/db";
Expand All @@ -17,7 +17,7 @@ export default function Page() {
/** Store */
const setUser = usePlatformStore((state) => state.setUser);
const setWorkspaces = usePlatformStore((state) => state.setWorkspaces);
const updateSettings = useSettingsStore((state) => state.update);
const updateSettings = useSettingsStore2((state) => state.update);
const login = async (userId: string) => {
const u = await findAccount(userId);
if (!u) return router.push("/sign-in");
Expand Down
2 changes: 1 addition & 1 deletion packages/notion/src/settings-panel/use-settings-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useSettingsStore2 = create<SettingsStore2>()(
}),
reset: () => set({ settings: initialSettings }),
}),
{ name: "settings" },
{ name: "settings-v2" },
),
),
);

0 comments on commit 33d457b

Please sign in to comment.