diff --git a/react-typescript/src/components/App.tsx b/react-typescript/src/components/App.tsx index 50c89f89..bef2a923 100644 --- a/react-typescript/src/components/App.tsx +++ b/react-typescript/src/components/App.tsx @@ -1,10 +1,13 @@ +import useDayLoader from '../hooks/useDayLoader'; import './App.css'; -import Items from './Item'; +import Items from './Items'; function App() { + const { loadNextDay } = useDayLoader(); return (
+
); } diff --git a/react-typescript/src/components/Item.tsx b/react-typescript/src/components/Items.tsx similarity index 66% rename from react-typescript/src/components/Item.tsx rename to react-typescript/src/components/Items.tsx index 448c1862..b0bfd4cc 100644 --- a/react-typescript/src/components/Item.tsx +++ b/react-typescript/src/components/Items.tsx @@ -1,15 +1,15 @@ -import useItem from "../hooks/useItem"; +import useAllItems from "../hooks/useAllItems"; import { TItem } from "../types" function Items() { - const { items, updateItem } = useItem(); + const { items } = useAllItems(); return (