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

This reverts commit afbcb52286.
This commit is contained in:
rift 2023-12-30 14:38:22 -06:00
parent 79fca20943
commit d33e0df2b4

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/${theme}.css`} />
<link rel="stylesheet" href="/themes/main.css" />
<Router>
<Route path="/" component={Home} />
<Route path="/discord" component={DiscordPage} />