mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: add usercard home page (temp?)
This commit is contained in:
@@ -11,6 +11,7 @@ import PageTransition from "components/PageTransition";
|
||||
import SearchModal from "components/SearchModal/SearchModal";
|
||||
import Categories from "components/SideMenu/Categories/Categories";
|
||||
import SideMenu from "components/SideMenu/SideMenu";
|
||||
import UserCard from "components/SideMenu/UserCard/UserCard";
|
||||
|
||||
import * as Keys from "constants/keys";
|
||||
import PATHS from "constants/paths";
|
||||
@@ -141,22 +142,25 @@ function Home(props: HomePageProps) {
|
||||
return (
|
||||
<PageTransition className="App">
|
||||
{isMobile ? (
|
||||
<AnimatePresence>
|
||||
{mobileModal.isShowing && (
|
||||
<Modal close={mobileModal.close}>
|
||||
<BlockWrapper style={{ minHeight: "0", flex: "1" }}>
|
||||
<ButtonLink href={PATHS.CATEGORY.CREATE}>
|
||||
Créer categorie
|
||||
</ButtonLink>
|
||||
<Categories
|
||||
categories={categories}
|
||||
categoryActive={categoryActive}
|
||||
handleSelectCategory={handleSelectCategory}
|
||||
/>
|
||||
</BlockWrapper>
|
||||
</Modal>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
<>
|
||||
<UserCard />
|
||||
<AnimatePresence>
|
||||
{mobileModal.isShowing && (
|
||||
<Modal close={mobileModal.close}>
|
||||
<BlockWrapper style={{ minHeight: "0", flex: "1" }}>
|
||||
<ButtonLink href={PATHS.CATEGORY.CREATE}>
|
||||
Créer categorie
|
||||
</ButtonLink>
|
||||
<Categories
|
||||
categories={categories}
|
||||
categoryActive={categoryActive}
|
||||
handleSelectCategory={handleSelectCategory}
|
||||
/>
|
||||
</BlockWrapper>
|
||||
</Modal>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</>
|
||||
) : (
|
||||
<SideMenu
|
||||
categories={categories}
|
||||
|
||||
Reference in New Issue
Block a user