diff --git a/front/style/home.css b/front/style/home/home.css similarity index 100% rename from front/style/home.css rename to front/style/home/home.css diff --git a/front/style/personnal_space.css b/front/style/home/personnal_space.css similarity index 100% rename from front/style/personnal_space.css rename to front/style/home/personnal_space.css diff --git a/front/style/side_menu.css b/front/style/home/side_menu.css similarity index 100% rename from front/style/side_menu.css rename to front/style/home/side_menu.css diff --git a/front/style/settings/settings.css b/front/style/settings/settings.css deleted file mode 100644 index 79d54fa..0000000 --- a/front/style/settings/settings.css +++ /dev/null @@ -1,2 +0,0 @@ -@import url(../template/header.css); -@import url(../theme/dark.css); \ No newline at end of file diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 22acd47..1f3599c 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -1,6 +1,5 @@ -import "../style/home.css" -import "../style/personnal_space.css" -import "../style/side_menu.css" +import "../style/home/home.css" + // import AccountSvg from "../assets/account.svg?react" import { CSSProperties, useRef } from "react" import { Header } from "./template/Header" @@ -265,4 +264,4 @@ function troncName(name: string, limit: number): string { name = name.substring(0, limit) + "..." } return name -} +} \ No newline at end of file diff --git a/src/App/Controller/UserController.php b/src/App/Controller/UserController.php index f33feb3..e33ee61 100644 --- a/src/App/Controller/UserController.php +++ b/src/App/Controller/UserController.php @@ -54,7 +54,7 @@ class UserController { * @return ViewHttpResponse account settings page */ public function settings(SessionHandle $session): ViewHttpResponse { - return ViewHttpResponse::twig("account_settings.twig", []); + return ViewHttpResponse::react("views/Settings.tsx", []); } public function disconnect(MutableSessionHandle $session): HttpResponse {