diff options
author | 2022-08-27 13:02:22 +0200 | |
---|---|---|
committer | 2022-08-27 14:50:27 +0200 | |
commit | 072621cee0f858236163ce11d42eca5adb84d205 (patch) | |
tree | 701686d051cb3a8a75be9075d404508be093a2a2 /subprojects/frontend/src/ToggleDarkModeButton.tsx | |
parent | refactor(frontend): custom mutex implementation (diff) | |
download | refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.gz refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.zst refinery-072621cee0f858236163ce11d42eca5adb84d205.zip |
refactor(frontend): add eslint-plugin-mobx
Diffstat (limited to 'subprojects/frontend/src/ToggleDarkModeButton.tsx')
-rw-r--r-- | subprojects/frontend/src/ToggleDarkModeButton.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/subprojects/frontend/src/ToggleDarkModeButton.tsx b/subprojects/frontend/src/ToggleDarkModeButton.tsx index 1685ec80..5602f3bc 100644 --- a/subprojects/frontend/src/ToggleDarkModeButton.tsx +++ b/subprojects/frontend/src/ToggleDarkModeButton.tsx | |||
@@ -6,7 +6,7 @@ import React from 'react'; | |||
6 | 6 | ||
7 | import { useRootStore } from './RootStore'; | 7 | import { useRootStore } from './RootStore'; |
8 | 8 | ||
9 | function ToggleDarkModeButton(): JSX.Element { | 9 | export default observer(function ToggleDarkModeButton(): JSX.Element { |
10 | const { themeStore } = useRootStore(); | 10 | const { themeStore } = useRootStore(); |
11 | const { darkMode } = themeStore; | 11 | const { darkMode } = themeStore; |
12 | 12 | ||
@@ -19,6 +19,4 @@ function ToggleDarkModeButton(): JSX.Element { | |||
19 | {darkMode ? <LightModeIcon /> : <DarkModeIcon />} | 19 | {darkMode ? <LightModeIcon /> : <DarkModeIcon />} |
20 | </IconButton> | 20 | </IconButton> |
21 | ); | 21 | ); |
22 | } | 22 | }); |
23 | |||
24 | export default observer(ToggleDarkModeButton); | ||