mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-03 03:19:41 +05:00
frontend: add search & search history
This commit is contained in:
parent
6b88601417
commit
e3a79c6864
5 changed files with 145 additions and 17 deletions
|
@ -3,10 +3,23 @@
|
|||
import "beercss";
|
||||
import "material-dynamic-colors";
|
||||
import { NavigationRail } from "@/app/components/NavigationRail/NavigationRail";
|
||||
import { setTheme, getTheme, setMode, getMode } from "./store/theme-store";
|
||||
import { useEffect, useState } from "react";
|
||||
import { ColorPicker } from "@/app/components/ColorPicker/ColorPicker";
|
||||
|
||||
export function setMode(mode) {
|
||||
localStorage.setItem("mode", mode);
|
||||
}
|
||||
export function getMode() {
|
||||
return localStorage.getItem("mode");
|
||||
}
|
||||
|
||||
export function setTheme(theme) {
|
||||
localStorage.setItem("theme", theme);
|
||||
}
|
||||
export function getTheme() {
|
||||
return localStorage.getItem("theme");
|
||||
}
|
||||
|
||||
export const App = (props) => {
|
||||
const [colorPicker, setColorPicker] = useState(false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue