From 072621cee0f858236163ce11d42eca5adb84d205 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Sat, 27 Aug 2022 13:02:22 +0200
Subject: refactor(frontend): add eslint-plugin-mobx

---
 subprojects/frontend/src/ToggleDarkModeButton.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'subprojects/frontend/src/ToggleDarkModeButton.tsx')

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';
 
 import { useRootStore } from './RootStore';
 
-function ToggleDarkModeButton(): JSX.Element {
+export default observer(function ToggleDarkModeButton(): JSX.Element {
   const { themeStore } = useRootStore();
   const { darkMode } = themeStore;
 
@@ -19,6 +19,4 @@ function ToggleDarkModeButton(): JSX.Element {
       {darkMode ? <LightModeIcon /> : <DarkModeIcon />}
     </IconButton>
   );
-}
-
-export default observer(ToggleDarkModeButton);
+});
-- 
cgit v1.2.3-54-g00ecf

