Disable setting tab when empty (#19315)
## before <img width="1063" height="520" alt="image" src="https://github.com/user-attachments/assets/db92432b-a30c-49e8-9246-a09d0815e6c9" /> ## after <img width="1049" height="490" alt="image" src="https://github.com/user-attachments/assets/e926b065-6a65-417b-b802-0e1df6ca638f" />
This commit is contained in:
@@ -173,6 +173,7 @@ export const TabList = ({
|
||||
disabled={tab.disabled ?? loading}
|
||||
pill={tab.pill}
|
||||
to={behaveAsLinks ? `#${tab.id}` : undefined}
|
||||
tooltipContent={tab.tooltipContent}
|
||||
onClick={
|
||||
behaveAsLinks
|
||||
? () => onChangeTab?.(tab.id)
|
||||
|
||||
@@ -8,4 +8,5 @@ export type SingleTabProps<T extends string = string> = {
|
||||
disabled?: boolean;
|
||||
pill?: string | React.ReactElement;
|
||||
logo?: string;
|
||||
tooltipContent?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user