Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
fix: Rewrite pathes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayathy committed Dec 15, 2022
1 parent c5b48c5 commit 300f600
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { MenuForm } from "../components/form/menu";
import type {
CreateStoreMenuListItem,
StoreMenuList,
} from "../libs/firebase/store";
} from "../libs/firebase/types";
import { useAuthContext } from "../contexts/auth";
import { getMenuList, createMenuListItem } from "../libs/firebase/store";
import { createMenuListItem } from "../libs/firebase/store";

const Menu: NextPageWithLayout = () => {
const [list, setList] = useState<StoreMenuList>([]);
Expand All @@ -21,9 +21,9 @@ const Menu: NextPageWithLayout = () => {
useEffect(() => {
(async () => {
if (user) {
const res = await getMenuList(user.uid);
setList(res);
setLoading(false);
// const res = await getMenuList(user.uid);
// setList(res);
// setLoading(false);
}
})();
}, [user]);
Expand Down

0 comments on commit 300f600

Please sign in to comment.