Skip to content

Commit

Permalink
remove todos
Browse files Browse the repository at this point in the history
  • Loading branch information
NickRoccodev11 committed Oct 15, 2024
1 parent df668b7 commit 812b528
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/api/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 0 additions & 8 deletions src/views/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 812b528

Please sign in to comment.