From a6978c6d173e7dac31bbca14c40b02626eb8dae8 Mon Sep 17 00:00:00 2001 From: GrannyYetta Date: Sun, 6 Oct 2024 11:59:30 +0200 Subject: [PATCH 1/2] delete FaCart from imports --- src/views/Layout.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/Layout.jsx b/src/views/Layout.jsx index 6972197..d7f9977 100644 --- a/src/views/Layout.jsx +++ b/src/views/Layout.jsx @@ -2,7 +2,6 @@ import { Outlet, NavLink, Link } from 'react-router-dom'; import { SignInButton, SignOutButton, useAuth } from '../api/useAuth'; import { - FaShoppingCart, FaHome, FaClipboardList, FaShareAlt, From d0eb2555b2988513a2abcb7507ba17723c275c51 Mon Sep 17 00:00:00 2001 From: GrannyYetta Date: Sun, 6 Oct 2024 19:46:12 +0200 Subject: [PATCH 2/2] style buttons and forms --- src/components/AddItem.jsx | 78 +++++++++++++++++------------- src/components/AddList.jsx | 12 +++-- src/components/ListItem.jsx | 7 ++- src/components/SingleList.jsx | 12 +++-- src/components/SingleListOld.css | 10 ++++ src/views/Home.jsx | 83 +++++++++++++++++--------------- src/views/Layout.jsx | 2 +- src/views/List.jsx | 45 ++++++++++------- src/views/ManageList.jsx | 19 +++++--- 9 files changed, 163 insertions(+), 105 deletions(-) create mode 100644 src/components/SingleListOld.css diff --git a/src/components/AddItem.jsx b/src/components/AddItem.jsx index b8d130e..f53c307 100644 --- a/src/components/AddItem.jsx +++ b/src/components/AddItem.jsx @@ -68,49 +68,61 @@ export function AddItem({ data, listPath }) { }; return ( - <> -
+
+ {/* Item Name Section */}
- - + + + +
{/* Urgency Section */}
- - + + + +
- +

{messageItem}

- +
); } diff --git a/src/components/AddList.jsx b/src/components/AddList.jsx index a3045d9..9002093 100644 --- a/src/components/AddList.jsx +++ b/src/components/AddList.jsx @@ -25,9 +25,12 @@ export function AddList({ setListPath, userId, userEmail }) { return ( <> -
- + + -
diff --git a/src/components/ListItem.jsx b/src/components/ListItem.jsx index 2d0b543..8581c8f 100644 --- a/src/components/ListItem.jsx +++ b/src/components/ListItem.jsx @@ -1,7 +1,6 @@ import { useState, useEffect } from 'react'; import './ListItem.css'; -import { FaTrashCan } from 'react-icons/fa6'; -import { FaCartShopping } from 'react-icons/fa6'; +import { FaTrashCan, FaCartShopping } from 'react-icons/fa6'; export function ListItem({ name, @@ -43,7 +42,7 @@ export function ListItem({ }; return ( -
+