From 56b699afba7a0739ccfc86d422c07494856ac8e8 Mon Sep 17 00:00:00 2001
From: Maxime Jacquemin <maxime2.jacquemin@gmail.com>
Date: Fri, 18 Feb 2022 18:20:08 +0100
Subject: [PATCH] [ivette] Satisfying the new linter constraints

---
 ivette/src/dome/renderer/frame/toolbars.tsx | 2 +-
 ivette/src/renderer/Application.tsx         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivette/src/dome/renderer/frame/toolbars.tsx b/ivette/src/dome/renderer/frame/toolbars.tsx
index c669a4882f6..850080b73f3 100644
--- a/ivette/src/dome/renderer/frame/toolbars.tsx
+++ b/ivette/src/dome/renderer/frame/toolbars.tsx
@@ -160,7 +160,7 @@ export interface SwitchProps {
 
 /** Toolbar Switch. */
 export function Switch(props: SwitchProps) {
-  const { title = '', onClick = () => {}, position } = props;
+  const { title = '', onClick, position } = props;
   const checked = position ? position === 'right' : undefined;
   return (
     <label className={'dome-xSwitch'}>
diff --git a/ivette/src/renderer/Application.tsx b/ivette/src/renderer/Application.tsx
index e08c9536932..6c5519de0e7 100644
--- a/ivette/src/renderer/Application.tsx
+++ b/ivette/src/renderer/Application.tsx
@@ -58,7 +58,7 @@ export default function Application(): JSX.Element {
   React.useState(() => change(th));
   const other = th === 'dark' ? 'light' : 'dark';
   const themeTitle = 'Switch to ' + other + ' theme';
-  const changeColorTheme = () => { change(other); setTh(other); };
+  const changeColorTheme: () => void = () => { change(other); setTh(other); };
 
   return (
     <Vfill>
-- 
GitLab