diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index b0f83f6..b29050c 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -35,41 +35,54 @@ const useStyles = makeStyles(() => ({ const Sidebar = () => { const classes = useStyles(); - const [selected, setSelected] = React.useState("1"); + const [selected, setSelected] = React.useState('1'); return ( - setSelected("1")}> + setSelected('1')} + > - {selected === "1" ? icon : icon} + {selected === '1' ? ( + icon + ) : ( + icon + )} - setSelected("2")}> + setSelected('2')} + > - {selected === "2" ? move : move} - + {selected === '2' ? ( + move + ) : ( + move + )} @@ -86,35 +99,49 @@ const Sidebar = () => { - setSelected("3")}> + setSelected('3')} + > - {selected === "3" ? icon : icon} + {selected === '3' ? ( + icon + ) : ( + icon + )} - setSelected("4")}> + setSelected('4')} + > - {selected === "4" ? fullscreen : fullscreen} + {selected === '4' ? ( + fullscreen + ) : ( + fullscreen + )} diff --git a/src/components/assets/styles/variables.ts b/src/components/assets/styles/variables.ts index a6cea25..b3284be 100644 --- a/src/components/assets/styles/variables.ts +++ b/src/components/assets/styles/variables.ts @@ -43,7 +43,7 @@ const vars = { nodeBorderColor: '#18A0FB', nodePointerBg: '#fff', nodeButtonTextColor: 'rgba(255, 255, 255, 0.8)', - nodeButtonLineColor: 'rgba(255, 255, 255, 0.2)' + nodeButtonLineColor: 'rgba(255, 255, 255, 0.2)', }; export default vars;