From 25c610c65dde3e816f56a73dd5ae4770fbabe308 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Wed, 15 Jun 2022 23:01:40 +0200 Subject: [PATCH] add className props and change animtation duration --- src/renderer/components/shared/tab-nav-bar.component.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/shared/tab-nav-bar.component.tsx b/src/renderer/components/shared/tab-nav-bar.component.tsx index 7e5a6543..bcf3bf20 100644 --- a/src/renderer/components/shared/tab-nav-bar.component.tsx +++ b/src/renderer/components/shared/tab-nav-bar.component.tsx @@ -1,6 +1,6 @@ import { useEffect, useRef, useState } from "react"; -export function TabNavBar(props: {tabsText: string[], onTabChange: Function}) { +export function TabNavBar(props: {tabsText: string[], onTabChange: Function, className?: string}) { const [currentTabIndex, setCurrentTabIndex] = useState(0); const tabsWrapper = useRef(null); @@ -18,11 +18,11 @@ export function TabNavBar(props: {tabsText: string[], onTabChange: Function}) { return ( -
+
- - + +
{ props.tabsText.map((y, index) =>