From eafe7841b53e061db4b7333d17536d4ef913c3e4 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 26 Sep 2023 13:45:45 +0300 Subject: [PATCH] Map each sidebar button --- src/pages/Dashboard/LeftSidebar.tsx | 31 +++++++++++------------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/pages/Dashboard/LeftSidebar.tsx b/src/pages/Dashboard/LeftSidebar.tsx index d5edaf2b..0da8715b 100644 --- a/src/pages/Dashboard/LeftSidebar.tsx +++ b/src/pages/Dashboard/LeftSidebar.tsx @@ -41,26 +41,19 @@ const LeftSidebar = () => { border: '1px solid #F0F2F5', }} > - } - variant="ghost" - isDotOn={false} - selected={true} - /> - } variant="ghost" isDotOn={false} /> - } - variant="outline" - isDotOn={false} - disabled={true} - /> - } variant="ghost" isDotOn={false} /> - } variant="ghost" isDotOn={false} /> - } variant="ghost" isDotOn={false} /> - } variant="ghost" isDotOn={true} /> - } variant="ghost" isDotOn={false} /> + {buttons.map((button: any) => ( + + ))} - ) + ); } export default LeftSidebar