Skip to content

Commit

Permalink
💄 🚧 Move ThemeSwitcher inside About page (WIP, need to update switch …
Browse files Browse the repository at this point in the history
…style)
  • Loading branch information
Striffly committed Jun 26, 2024
1 parent f1c2bd5 commit 7801de4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 0 additions & 5 deletions frontend/src/assets/styles/components/_Navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,4 @@
opacity: 0.85;
}
}

.ThemeSwitcher {
position: absolute;
right: 1rem;
}
}
3 changes: 0 additions & 3 deletions frontend/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AppBar, Toolbar } from "@mui/material";
import LogoURL from "../assets/icons/logo_url.svg";
import ThemeSwitcher from "./ThemeSwitcher";

export default function Navbar() {
return (
Expand All @@ -9,8 +8,6 @@ export default function Navbar() {
<a href="https://votefinder.fr">
<LogoURL className="Navbar__logo" />
</a>

<ThemeSwitcher />
</Toolbar>
</AppBar>
);
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/pages/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
X,
} from "@mui/icons-material";
import { projectURL } from "../data/variables.jsx";
import ThemeSwitcher from "../components/ThemeSwitcher.jsx";

export default function About({ visible }) {
const context = useContext(ThemeContext);
Expand Down Expand Up @@ -69,6 +70,12 @@ export default function About({ visible }) {
</Button>

<h2>Paramètres</h2>
<h2>Paramètres</h2>
<div>
Choix du thème
<ThemeSwitcher />
</div>

<Button
className="reset"
startIcon={<Delete />}
Expand Down

0 comments on commit 7801de4

Please sign in to comment.