diff --git a/src/api/firebase.js b/src/api/firebase.js index 3644b57..9e68afc 100644 --- a/src/api/firebase.js +++ b/src/api/firebase.js @@ -186,8 +186,6 @@ export async function shareList(listPath, currentUserId, recipientEmail) { */ export async function addItem(listPath, { itemName, daysUntilNextPurchase }) { const listCollectionRef = collection(db, listPath, 'items'); - // TODO: Replace this call to console.log with the appropriate - // Firebase function, so this information is sent to your database! return await addDoc(listCollectionRef, { dateCreated: new Date(), // NOTE: This is null because the item has just been created. diff --git a/src/views/Layout.jsx b/src/views/Layout.jsx index ec6be22..83a0ce3 100644 --- a/src/views/Layout.jsx +++ b/src/views/Layout.jsx @@ -15,14 +15,6 @@ import logo from '../assets/logo.png'; import { useEffect } from 'react'; import { useTheme } from '../context/ThemeContext'; -/** - * TODO: The links defined in this file don't work! - * - * Instead of anchor element, they should use a component - * from `react-router-dom` to navigate to the routes - * defined in `App.jsx`. - */ - export function Layout() { const { user } = useAuth(); const { theme, setTheme } = useTheme();