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:
parent
79fca20943
commit
d33e0df2b4
1 changed files with 2 additions and 2 deletions
|
|
@ -9,11 +9,11 @@ import { AboutBlank } from "./AboutBlank";
|
||||||
//import AutocompleteInput from "./Autocomplete";
|
//import AutocompleteInput from "./Autocomplete";
|
||||||
import "./style.css";
|
import "./style.css";
|
||||||
import "./i18n";
|
import "./i18n";
|
||||||
const theme:string = localStorage.getItem("theme") || "main";
|
|
||||||
export default function Routes() {
|
export default function Routes() {
|
||||||
return (
|
return (
|
||||||
<LocationProvider>
|
<LocationProvider>
|
||||||
<link rel="stylesheet" href={`/themes/${theme}.css`} />
|
<link rel="stylesheet" href="/themes/main.css" />
|
||||||
<Router>
|
<Router>
|
||||||
<Route path="/" component={Home} />
|
<Route path="/" component={Home} />
|
||||||
<Route path="/discord" component={DiscordPage} />
|
<Route path="/discord" component={DiscordPage} />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue