From ea12eeebcb5556f45f87c2cc95393204c26acef3 Mon Sep 17 00:00:00 2001 From: Dotty Date: Fri, 29 Nov 2024 13:01:07 -0400 Subject: [PATCH] [TM-1392] edit toolgle in secDashboard --- src/components/elements/Toggle/Toggle.tsx | 2 +- src/pages/dashboard/index.page.tsx | 10 ++++++++-- src/pages/dashboard/mockedData/dashboard.ts | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/elements/Toggle/Toggle.tsx b/src/components/elements/Toggle/Toggle.tsx index 02c388aad..6e8da9ae2 100644 --- a/src/components/elements/Toggle/Toggle.tsx +++ b/src/components/elements/Toggle/Toggle.tsx @@ -56,7 +56,7 @@ const Toggle = (props: ToggleProps) => { transform: `translateX(calc(${buttonRefs.current[activeIndex]?.offsetLeft || 0}px - 4px))` }} /> - {items.map((tab, index) => ( + {items.map((tab: TogglePropsItem, index) => (