From c24ee53967cec5dc42c2949882ba795a23fc425c Mon Sep 17 00:00:00 2001 From: zerosoul Date: Tue, 19 Apr 2022 22:53:03 +0800 Subject: [PATCH] chore: remove unused code --- src/routes/contacts/index.js | 4 ++-- src/routes/home/index.js | 14 +------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/routes/contacts/index.js b/src/routes/contacts/index.js index f87e9e7d..8411bf20 100644 --- a/src/routes/contacts/index.js +++ b/src/routes/contacts/index.js @@ -3,7 +3,7 @@ import { NavLink, useParams } from "react-router-dom"; import { useSelector } from "react-redux"; import Search from "../../common/component/Search"; import Contact from "../../common/component/Contact"; -import CurrentUser from "../../common/component/CurrentUser"; +// import CurrentUser from "../../common/component/CurrentUser"; import Profile from "../../common/component/Profile"; import StyledWrapper from "./styled"; @@ -29,7 +29,7 @@ export default function ContactsPage() { })} - + {/* */} {user_id && (
diff --git a/src/routes/home/index.js b/src/routes/home/index.js index 2601d440..0986b9ff 100644 --- a/src/routes/home/index.js +++ b/src/routes/home/index.js @@ -26,7 +26,7 @@ export default function HomePage() { loginUid: store.authData.uid, }; }); - const { data, loading } = usePreload(); + const { loading } = usePreload(); // console.log("index loading", loading, ready); if (loading || !ready) { return ; @@ -51,31 +51,19 @@ export default function HomePage() { chat icon - {/* {menuExpand && ( - Chat - )} */} contact icon - {/* {menuExpand && ( - - Contacts - - )} */} folder icon - {/* {menuExpand && ( - Files - )} */}
- {/* */}