Skip to content
Snippets Groups Projects
Commit 56b699af authored by Maxime Jacquemin's avatar Maxime Jacquemin Committed by Loïc Correnson
Browse files

[ivette] Satisfying the new linter constraints

parent fba9c5aa
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ export interface SwitchProps { ...@@ -160,7 +160,7 @@ export interface SwitchProps {
/** Toolbar Switch. */ /** Toolbar Switch. */
export function Switch(props: SwitchProps) { export function Switch(props: SwitchProps) {
const { title = '', onClick = () => {}, position } = props; const { title = '', onClick, position } = props;
const checked = position ? position === 'right' : undefined; const checked = position ? position === 'right' : undefined;
return ( return (
<label className={'dome-xSwitch'}> <label className={'dome-xSwitch'}>
......
...@@ -58,7 +58,7 @@ export default function Application(): JSX.Element { ...@@ -58,7 +58,7 @@ export default function Application(): JSX.Element {
React.useState(() => change(th)); React.useState(() => change(th));
const other = th === 'dark' ? 'light' : 'dark'; const other = th === 'dark' ? 'light' : 'dark';
const themeTitle = 'Switch to ' + other + ' theme'; const themeTitle = 'Switch to ' + other + ' theme';
const changeColorTheme = () => { change(other); setTh(other); }; const changeColorTheme: () => void = () => { change(other); setTh(other); };
return ( return (
<Vfill> <Vfill>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment