mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Prettify all files
This commit is contained in:
@@ -8,7 +8,7 @@ const useContactForm = () => {
|
||||
});
|
||||
|
||||
const handleChange = (
|
||||
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
||||
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,
|
||||
) => {
|
||||
setValues((prevState) => {
|
||||
return {
|
||||
|
||||
@@ -8,7 +8,7 @@ function useDarkMode(): [string, Dispatch<SetStateAction<string>>] {
|
||||
const [theme, setTheme] = useState(
|
||||
typeof window !== "undefined"
|
||||
? localStorage.theme || (prefersDarkMode ? "dark" : "light")
|
||||
: "dark"
|
||||
: "dark",
|
||||
);
|
||||
|
||||
const colorTheme = theme === "dark" ? "light" : "dark";
|
||||
|
||||
Reference in New Issue
Block a user