From 18fc697b9112a5e6a844df6b97a34b751dd5c9c7 Mon Sep 17 00:00:00 2001 From: Palash <88981777+palash-signoz@users.noreply.github.com> Date: Tue, 28 Sep 2021 19:03:19 +0530 Subject: [PATCH] Fix dark theme mode (#314) * theme address is fixed * theme address is fixed --- frontend/src/components/SideNav/index.tsx | 2 +- frontend/src/index.html.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/SideNav/index.tsx b/frontend/src/components/SideNav/index.tsx index f970b5788e..439db6ed67 100644 --- a/frontend/src/components/SideNav/index.tsx +++ b/frontend/src/components/SideNav/index.tsx @@ -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); diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejs index d97d906ec5..49928c33a4 100644 --- a/frontend/src/index.html.ejs +++ b/frontend/src/index.html.ejs @@ -14,7 +14,7 @@ - +