Skip to content

Commit

Permalink
Merge branch 'feat/setup-tailwind-shadcn' into mm-feature/navbar-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
marshjaja authored Oct 6, 2024
2 parents 1768009 + db0d0af commit 2db3c44
Show file tree
Hide file tree
Showing 14 changed files with 615 additions and 90 deletions.
235 changes: 233 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
"@the-collab-lab/shopping-list-utils": "^2.2.0",
Expand All @@ -21,7 +22,8 @@
"react-icons": "^5.3.0",
"react-router-dom": "^6.26.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7"
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@nabla/vite-plugin-eslint": "^2.0.4",
Expand Down
6 changes: 5 additions & 1 deletion src/api/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ export async function shareList(listPath, currentUserId, recipientEmail) {
* @param {string} itemData.itemName The name of the item.
* @param {number} itemData.daysUntilNextPurchase The number of days until the user thinks they'll need to buy the item again.
*/
export async function addItem(listPath, { itemName, daysUntilNextPurchase }) {
export async function addItem(
listPath,
{ itemName, itemQuantity, daysUntilNextPurchase },
) {
const listCollectionRef = collection(db, listPath, 'items');
return addDoc(listCollectionRef, {
dateCreated: new Date(),
Expand All @@ -187,6 +190,7 @@ export async function addItem(listPath, { itemName, daysUntilNextPurchase }) {
dateNextPurchased: getFutureDate(daysUntilNextPurchase),
dayInterval: daysUntilNextPurchase,
name: itemName,
quantity: itemQuantity,
totalPurchases: 0,
checked: false,
});
Expand Down
14 changes: 0 additions & 14 deletions src/components/ListItem.css

This file was deleted.

Loading

0 comments on commit 2db3c44

Please sign in to comment.