Skip to content

Commit

Permalink
Merge pull request #11 from deriv-com/shayan/add-type-to-tab-title-va…
Browse files Browse the repository at this point in the history
…riants

chore: added type to classNameVariants
  • Loading branch information
shayan-deriv authored Jan 19, 2024
2 parents 240ab52 + 79c769c commit 9a6379c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/Tabs/TabTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TabTitle = ({ icon, activeTab, isActive, setSelectedTab, title,className,v
setSelectedTab(title);
}, [setSelectedTab, activeTab]);

const classNameVariants = {
const classNameVariants: Record<TabTitleProps['variant'], string> = {
primary : `derivs-primary-tabs__btn--active`,
secondary : `derivs-secondary-tabs__btn--active`,
}
Expand Down

0 comments on commit 9a6379c

Please sign in to comment.