chore: remove unused code
This commit is contained in:
@@ -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() {
|
||||
})}
|
||||
</nav>
|
||||
</div>
|
||||
<CurrentUser />
|
||||
{/* <CurrentUser /> */}
|
||||
</div>
|
||||
{user_id && (
|
||||
<div className="right">
|
||||
|
||||
@@ -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 <Loading />;
|
||||
@@ -51,31 +51,19 @@ export default function HomePage() {
|
||||
<Tooltip tip="Chat">
|
||||
<img src={ChatIcon} alt="chat icon" />
|
||||
</Tooltip>
|
||||
{/* {menuExpand && (
|
||||
<span className="animate__animated animate__fadeIn">Chat</span>
|
||||
)} */}
|
||||
</NavLink>
|
||||
<NavLink className="link" to={"/contacts"}>
|
||||
<Tooltip tip="Members">
|
||||
<img src={ContactIcon} alt="contact icon" />
|
||||
</Tooltip>
|
||||
{/* {menuExpand && (
|
||||
<span className="animate__animated animate__fadeIn">
|
||||
Contacts
|
||||
</span>
|
||||
)} */}
|
||||
</NavLink>
|
||||
<NavLink className="link" to={"/files"}>
|
||||
<Tooltip tip="Files">
|
||||
<img src={FolderIcon} alt="folder icon" />
|
||||
</Tooltip>
|
||||
{/* {menuExpand && (
|
||||
<span className="animate__animated animate__fadeIn">Files</span>
|
||||
)} */}
|
||||
</NavLink>
|
||||
</nav>
|
||||
<div className="divider"></div>
|
||||
{/* <Tools expand={menuExpand} /> */}
|
||||
<Menu />
|
||||
</div>
|
||||
<div className="col right">
|
||||
|
||||
Reference in New Issue
Block a user