diff --git a/src/pages/Dashboard/LeftSidebar.tsx b/src/pages/Dashboard/LeftSidebar.tsx index 87b046f1..d5edaf2b 100644 --- a/src/pages/Dashboard/LeftSidebar.tsx +++ b/src/pages/Dashboard/LeftSidebar.tsx @@ -11,11 +11,25 @@ import { import { YStack } from 'tamagui' import IconButtonWithDot from './IconButtonWithDot' import { useDispatch, useSelector } from 'react-redux' +import { toggleButtonSelection } from '../../redux/Sidebars/slice' const LeftSidebar = () => { + const buttons = useSelector((state: any) => state.leftSidebar.buttons) - console.log(buttons) - return ( + + const renderIcon = (id: string) => { + switch (id) { + case 'dashboard': return ; + case 'speed': return ; + case 'chart': return ; + case 'heart': return ; + case 'codeBlock': return ; + case 'communities': return ; + case 'activityCenter': return ; + case 'settings': return ; + default: return null; + } + }; return (