From d1734851210803c61240b75aaf59c9ff1a4b8fb7 Mon Sep 17 00:00:00 2001 From: Maigo Erit Date: Sat, 29 Aug 2020 12:48:19 +0300 Subject: [PATCH] eslint fixes --- client/src/router.tsx | 2 +- client/src/routes/ChartThemeProvider.tsx | 2 +- electron/app/app-manager.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/router.tsx b/client/src/router.tsx index 6bc1e12c..4a2fc6f8 100644 --- a/client/src/router.tsx +++ b/client/src/router.tsx @@ -40,7 +40,7 @@ export function MainRouter() { Logger.debug('Clearing eventEmitter'); EventEmitter.off('activeThemeChanged', changeActiveTheme); }; - }, [changeActiveTheme]); + }, [changeActiveTheme]); // eslint-disable-line react-hooks/exhaustive-deps useEffect(() => { saveTheme(theme); diff --git a/client/src/routes/ChartThemeProvider.tsx b/client/src/routes/ChartThemeProvider.tsx index ebc25394..77a49a87 100644 --- a/client/src/routes/ChartThemeProvider.tsx +++ b/client/src/routes/ChartThemeProvider.tsx @@ -1,6 +1,6 @@ import React, { useState, createContext, useContext, useEffect } from 'react'; import { Logger } from '../logger'; -import { THEME_DARK, THEME_LIGHT } from '../constants'; +import { THEME_DARK } from '../constants'; import { getChartTheme } from '../components/Timeline/ChartTheme'; diff --git a/electron/app/app-manager.ts b/electron/app/app-manager.ts index 6458606d..30a8e72d 100644 --- a/electron/app/app-manager.ts +++ b/electron/app/app-manager.ts @@ -5,7 +5,6 @@ import { initIpcActions } from './API'; import config from './config'; import { connectAndSync } from './models/db'; import { sendToTrayWindow, sendToMainWindow } from './window-manager'; -import { info } from 'console'; let logger = logManager.getLogger('AppManager');