diff --git a/src/App.jsx b/src/App.jsx index bc52f1a..f5e6008 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -34,6 +34,7 @@ export function App() { * Check ./api/firestore.js for its implementation. */ const lists = useShoppingLists(userId, userEmail); + /** * This custom hook takes our token and fetches the data for our list. * Check ./api/firestore.js for its implementation. diff --git a/src/views/Home.jsx b/src/views/Home.jsx index 52bee35..b86dadf 100644 --- a/src/views/Home.jsx +++ b/src/views/Home.jsx @@ -1,16 +1,23 @@ import './Home.css'; +import { SingleList } from '../components'; export function Home({ data, setListPath }) { + const hasList = data.length !== 0; return (

Hello from the home (/) page!

); diff --git a/src/views/List.jsx b/src/views/List.jsx index b52303c..a755db0 100644 --- a/src/views/List.jsx +++ b/src/views/List.jsx @@ -1,17 +1,15 @@ import { ListItem } from '../components'; export function List({ data }) { + const hasItem = data.length !== 0; return ( <>

Hello from the /list page!

);