Skip to content

Commit

Permalink
Fix dark theme mode (#314)
Browse files Browse the repository at this point in the history
* theme address is fixed

* theme address is fixed
  • Loading branch information
palashgdev authored Sep 28, 2021
1 parent 93b347d commit 18fc697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/SideNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const SideNav = ({ toggleDarkMode }: Props): JSX.Element => {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = !isDarkMode ? './css/antd.dark.min.css' : './css/antd.min.css';
link.href = !isDarkMode ? '/css/antd.dark.min.css' : '/css/antd.min.css';
link.media = 'all';
link.id = id;
head.appendChild(link);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta data-react-helmet="true" name="docusaurus_tag" content="default">
<link data-react-helmet="true" rel="shortcut icon" href="/favicon.ico">

<link id='darkMode' rel='stylesheet' type='text/css' href='./css/antd.dark.min.css' />
<link id='darkMode' rel='stylesheet' type='text/css' href='/css/antd.dark.min.css' />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down

0 comments on commit 18fc697

Please sign in to comment.