mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
So it loads, but when I try to set a different theme using localstorage, its broken?
This commit is contained in:
parent
b4c759eded
commit
afbcb52286
1 changed files with 2 additions and 2 deletions
|
@ -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} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue