mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 22:43:11 +02:00
License and updater Cargo features (#258)
This commit is contained in:
@@ -10,6 +10,7 @@ export type TabItem =
|
||||
| {
|
||||
value: string;
|
||||
label: string;
|
||||
hidden?: boolean;
|
||||
rightSlot?: ReactNode;
|
||||
}
|
||||
| {
|
||||
@@ -97,6 +98,10 @@ export function Tabs({
|
||||
)}
|
||||
>
|
||||
{tabs.map((t) => {
|
||||
if ('hidden' in t && t.hidden) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const isActive = t.value === value;
|
||||
const btnClassName = classNames(
|
||||
'h-sm flex items-center rounded whitespace-nowrap',
|
||||
|
||||
Reference in New Issue
Block a user