Remove hardcoded width

This commit is contained in:
Arnaud 2024-09-10 13:48:06 +02:00
parent 5b991968f0
commit ef8726f92e
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { classnames } from "../utils/classnames";
type Props = {
tabs: {
label: string;
Icon?: ComponentType<{ size?: string }>;
Icon?: ComponentType;
}[];
onTabChange: (index: number) => void | Promise<void>;
tabIndex: number;
@ -23,7 +23,7 @@ export function Tabs({ tabs, onTabChange, tabIndex }: Props) {
)}
onClick={() => onTabChange(index)}
>
{tab.Icon && <tab.Icon size={"1rem"} />}
{tab.Icon && <tab.Icon />}
<span>{tab.label}</span>
</div>
))}