Spelunking-Studios / The-Caverns-Website

Use const declarations for variables that are never reassigned JS-0242
Anti-pattern
Minor
3 occurrences in this check
'setTheme' is never reassigned. Use 'const' instead
 4import useLocalStorage from "use-local-storage";
 5
 6export default function ThemeToggle() {
 7	let [theme, setTheme] = useTheme(); 8	const [themeStorage, setThemeStorage] = useLocalStorage("theme", "light");
 9	let themeBindings = {
10		"light": "light_mode",
'themeBindings' is never reassigned. Use 'const' instead
 6export default function ThemeToggle() {
 7	let [theme, setTheme] = useTheme();
 8	const [themeStorage, setThemeStorage] = useLocalStorage("theme", "light");
 9	let themeBindings = {10		"light": "light_mode",
11		"dark": "dark_mode"
12	}
'theme' is never reassigned. Use 'const' instead
 4import useLocalStorage from "use-local-storage";
 5
 6export default function ThemeToggle() {
 7	let [theme, setTheme] = useTheme(); 8	const [themeStorage, setThemeStorage] = useLocalStorage("theme", "light");
 9	let themeBindings = {
10		"light": "light_mode",