So it loads, but when I try to set a different theme using localstorage, its broken?

This commit is contained in:
incognitotgt 2023-12-30 12:08:34 -05:00
parent b4c759eded
commit afbcb52286

View file

@ -9,11 +9,11 @@ import { AboutBlank } from "./AboutBlank";
//import AutocompleteInput from "./Autocomplete";
import "./style.css";
import "./i18n";
const theme:string = localStorage.getItem("theme") || "main";
export default function Routes() {
return (
<LocationProvider>
<link rel="stylesheet" href="/themes/main.css" />
<link rel="stylesheet" href={`/themes/${theme}.css`} />
<Router>
<Route path="/" component={Home} />
<Route path="/discord" component={DiscordPage} />