mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-05-13 17:21:53 +00:00
refactor(userProfile -> profile): refactor userProfile to profile (page + folder)
This commit is contained in:
@@ -69,7 +69,7 @@ export default function Navbar({ variant = "fixed" }: Props) {
|
|||||||
<Link href={"/dashboard"} color={"purple.500"}>
|
<Link href={"/dashboard"} color={"purple.500"}>
|
||||||
Tableau de bord
|
Tableau de bord
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={"/userProfile"} color={"purple.500"}>
|
<Link href={"/profile"} color={"purple.500"}>
|
||||||
Profile
|
Profile
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={"/map"} color={"purple.500"}>
|
<Link href={"/map"} color={"purple.500"}>
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export default function LeftPanel(props) {
|
|||||||
</LeftPanelButton>
|
</LeftPanelButton>
|
||||||
<LeftPanelButton
|
<LeftPanelButton
|
||||||
leftIcon={<BsFillPersonFill />}
|
leftIcon={<BsFillPersonFill />}
|
||||||
onClickHandler={() => router.push("/userProfile")}
|
onClickHandler={() => router.push("/profile")}
|
||||||
>
|
>
|
||||||
Profile
|
Profile
|
||||||
</LeftPanelButton>
|
</LeftPanelButton>
|
||||||
|
|||||||
+3
-8
@@ -1,10 +1,5 @@
|
|||||||
export {default} from 'next-auth/middleware';
|
export { default } from "next-auth/middleware";
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: [
|
matcher: ["/dashboard", "/profile", "/chat", "/chat/:path*"],
|
||||||
'/dashboard',
|
};
|
||||||
'/userProfile',
|
|
||||||
'/chat',
|
|
||||||
'/chat/:path*',
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -45,10 +45,6 @@ export default function Dashboard() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
Erreur quand je retourn de userProfile à dashboard
|
|
||||||
*/
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data: listUsers,
|
data: listUsers,
|
||||||
isError: isErrorListUsers,
|
isError: isErrorListUsers,
|
||||||
|
|||||||
@@ -18,15 +18,15 @@ import {
|
|||||||
VStack,
|
VStack,
|
||||||
} from "@chakra-ui/react";
|
} from "@chakra-ui/react";
|
||||||
|
|
||||||
import ModalModifyImages from "@/components/layout/user_profile/ModalModifyImages";
|
import ModalModifyImages from "@/components/layout/profile/ModalModifyImages";
|
||||||
import ModalChoosePassion from "@/components/layout/user_profile/ModalChoosePassion";
|
import ModalChoosePassion from "@/components/layout/profile/ModalChoosePassion";
|
||||||
import ProfileTagList from "@/components/layout/user_profile/ProfileTagList";
|
import ProfileTagList from "@/components/layout/profile/ProfileTagList";
|
||||||
import LoadingPage from "@/components/LoadingPage";
|
import LoadingPage from "@/components/LoadingPage";
|
||||||
import CustomEditable from "@/components/layout/user_profile/CustomEditable";
|
import CustomEditable from "@/components/layout/profile/CustomEditable";
|
||||||
import CustomFalseEditable from "@/components/layout/user_profile/CustomFalseEditable";
|
import CustomFalseEditable from "@/components/layout/profile/CustomFalseEditable";
|
||||||
import CustomEditableArea from "@/components/layout/user_profile/CustomEditableArea";
|
import CustomEditableArea from "@/components/layout/profile/CustomEditableArea";
|
||||||
import CustomRadioGender from "@/components/layout/user_profile/CustomRadioGender";
|
import CustomRadioGender from "@/components/layout/profile/CustomRadioGender";
|
||||||
import CustomRangeSlider from "@/components/layout/user_profile/CustomRangeSlider";
|
import CustomRangeSlider from "@/components/layout/profile/CustomRangeSlider";
|
||||||
// import CustomSlider from "@/components/layout/user_profile/CustomSlider";
|
// import CustomSlider from "@/components/layout/user_profile/CustomSlider";
|
||||||
|
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
Reference in New Issue
Block a user