aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-01 18:55:01 +0100
committerSascha <GlancingMind@outlook.com>2021-03-04 20:53:28 +0100
commit680ede3df68b868f38b0207f4c0829e93181f161 (patch)
tree49a34eb2cf568bb5e4a47c99a58da7e93ac6bc6d /webui/src
parent9cac03652c410f943abe1e3a6b55dce0d79e48d6 (diff)
downloadgit-bug-680ede3df68b868f38b0207f4c0829e93181f161.tar.gz
Fix (hopefully) eslint error on node 14.x pipeline
Diffstat (limited to 'webui/src')
-rw-r--r--webui/src/components/Themer.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webui/src/components/Themer.tsx b/webui/src/components/Themer.tsx
index d831fca9..4adef24a 100644
--- a/webui/src/components/Themer.tsx
+++ b/webui/src/components/Themer.tsx
@@ -13,7 +13,8 @@ const ThemeContext = createContext({
const LightSwitch = () => {
const { mode, toggleMode } = useContext(ThemeContext);
- const description = `Switch to ${mode === 'light' ? 'dark' : 'light'} theme`;
+ const nextMode = mode === 'light' ? 'dark' : 'light';
+ const description = `Switch to ${nextMode} theme`;
return (
<Tooltip title={description}>