Fix dark theme mode (#314)

* theme address is fixed

* theme address is fixed
This commit is contained in:
Palash 2021-09-28 19:03:19 +05:30 committed by GitHub
parent 93b347d25e
commit 18fc697b91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ const SideNav = ({ toggleDarkMode }: Props): JSX.Element => {
const link = document.createElement('link'); const link = document.createElement('link');
link.rel = 'stylesheet'; link.rel = 'stylesheet';
link.type = 'text/css'; 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.media = 'all';
link.id = id; link.id = id;
head.appendChild(link); head.appendChild(link);

View File

@ -14,7 +14,7 @@
<meta data-react-helmet="true" name="docusaurus_tag" content="default"> <meta data-react-helmet="true" name="docusaurus_tag" content="default">
<link data-react-helmet="true" rel="shortcut icon" href="/favicon.ico"> <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> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>