+
{children}
)}
diff --git a/src/views/Home.css b/src/views/Home.css
deleted file mode 100644
index d9ac710..0000000
--- a/src/views/Home.css
+++ /dev/null
@@ -1,53 +0,0 @@
-.Home button {
- border-radius: 5px;
- padding: 8px 12px;
- cursor: pointer;
- border: 1px solid #ccc;
- box-sizing: border-box;
-}
-
-input[type='text'] {
- padding: 10px;
- width: 70%;
- margin-right: 10px;
- font-size: 16px;
- border: 1px solid #ccc;
- border-radius: 5px;
- box-sizing: border-box;
- margin-top: 10px;
-}
-
-h1,
-h2,
-h3 {
- margin-bottom: 20px;
-}
-
-label {
- font-size: 20px;
- font-weight: bold;
- margin-bottom: 10px;
- margin-top: 20px;
-}
-
-.list-container {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px 0;
-}
-
-.share-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- padding: 10px;
- border: 1px solid #ccc;
- border-radius: 4px;
- transition: transform 0.2s ease-in-out;
-}
-
-.share-icon:hover {
- transform: scale(1.2);
-}
diff --git a/src/views/Home.jsx b/src/views/Home.jsx
index 1a7d583..9fb8c5e 100644
--- a/src/views/Home.jsx
+++ b/src/views/Home.jsx
@@ -1,31 +1,21 @@
-import { FaPlusSquare, FaShareAlt } from 'react-icons/fa';
+import { FaPlusSquare } from 'react-icons/fa';
import { FaAngleRight, FaAngleDown } from 'react-icons/fa6';
-import { NavLink } from 'react-router-dom';
import { useState } from 'react';
import { Disclosure } from './Disclosure';
import { List } from './List';
import { IconButton } from '../components/IconButton';
-//import './Home.css';
-import { Share } from './Share';
import { CreateList } from './CreateList';
import { ToastContainer } from 'react-toastify';
-export function Home({ data, lists, listPath, setListPath, user }) {
+export function Home({ data, lists, selectedListPath, setListPath, user }) {
const userId = user?.uid;
const [isCreateListModalOpen, setIsCreateListModalOpen] = useState(false);
- const [isShareModalOpen, setIsShareModalOpen] = useState(false);
- const [currentListPath, setCurrentListPath] = useState('');
const handleCreateListClick = () => {
setIsCreateListModalOpen(true);
};
- const handleShareClick = (listPath) => {
- setCurrentListPath(listPath);
- setIsShareModalOpen(true);
- };
-
return (
@@ -62,33 +52,17 @@ export function Home({ data, lists, listPath, setListPath, user }) {
iconExpanded={}
iconCollapsed={}
listpath={list.path}
- currentListPath={listPath}
+ selectedListPath={selectedListPath}
setListPath={setListPath}
+ currentUserId={userId}
>
-
handleShareClick(list.path)}
- />