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"}>
|
||||
Tableau de bord
|
||||
</Link>
|
||||
<Link href={"/userProfile"} color={"purple.500"}>
|
||||
<Link href={"/profile"} color={"purple.500"}>
|
||||
Profile
|
||||
</Link>
|
||||
<Link href={"/map"} color={"purple.500"}>
|
||||
|
||||
@@ -84,7 +84,7 @@ export default function LeftPanel(props) {
|
||||
</LeftPanelButton>
|
||||
<LeftPanelButton
|
||||
leftIcon={<BsFillPersonFill />}
|
||||
onClickHandler={() => router.push("/userProfile")}
|
||||
onClickHandler={() => router.push("/profile")}
|
||||
>
|
||||
Profile
|
||||
</LeftPanelButton>
|
||||
|
||||
+3
-8
@@ -1,10 +1,5 @@
|
||||
export {default} from 'next-auth/middleware';
|
||||
export { default } from "next-auth/middleware";
|
||||
|
||||
export const config = {
|
||||
matcher: [
|
||||
'/dashboard',
|
||||
'/userProfile',
|
||||
'/chat',
|
||||
'/chat/:path*',
|
||||
],
|
||||
};
|
||||
matcher: ["/dashboard", "/profile", "/chat", "/chat/:path*"],
|
||||
};
|
||||
|
||||
@@ -45,10 +45,6 @@ export default function Dashboard() {
|
||||
},
|
||||
});
|
||||
|
||||
/*
|
||||
Erreur quand je retourn de userProfile à dashboard
|
||||
*/
|
||||
|
||||
const {
|
||||
data: listUsers,
|
||||
isError: isErrorListUsers,
|
||||
|
||||
@@ -18,15 +18,15 @@ import {
|
||||
VStack,
|
||||
} from "@chakra-ui/react";
|
||||
|
||||
import ModalModifyImages from "@/components/layout/user_profile/ModalModifyImages";
|
||||
import ModalChoosePassion from "@/components/layout/user_profile/ModalChoosePassion";
|
||||
import ProfileTagList from "@/components/layout/user_profile/ProfileTagList";
|
||||
import ModalModifyImages from "@/components/layout/profile/ModalModifyImages";
|
||||
import ModalChoosePassion from "@/components/layout/profile/ModalChoosePassion";
|
||||
import ProfileTagList from "@/components/layout/profile/ProfileTagList";
|
||||
import LoadingPage from "@/components/LoadingPage";
|
||||
import CustomEditable from "@/components/layout/user_profile/CustomEditable";
|
||||
import CustomFalseEditable from "@/components/layout/user_profile/CustomFalseEditable";
|
||||
import CustomEditableArea from "@/components/layout/user_profile/CustomEditableArea";
|
||||
import CustomRadioGender from "@/components/layout/user_profile/CustomRadioGender";
|
||||
import CustomRangeSlider from "@/components/layout/user_profile/CustomRangeSlider";
|
||||
import CustomEditable from "@/components/layout/profile/CustomEditable";
|
||||
import CustomFalseEditable from "@/components/layout/profile/CustomFalseEditable";
|
||||
import CustomEditableArea from "@/components/layout/profile/CustomEditableArea";
|
||||
import CustomRadioGender from "@/components/layout/profile/CustomRadioGender";
|
||||
import CustomRangeSlider from "@/components/layout/profile/CustomRangeSlider";
|
||||
// import CustomSlider from "@/components/layout/user_profile/CustomSlider";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
Reference in New Issue
Block a user