mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 11:21:30 +01:00
Handle "no body" case
This commit is contained in:
@@ -5,12 +5,12 @@ import { Icon } from './Icon';
|
||||
|
||||
export interface RadioDropdownItem {
|
||||
label: string;
|
||||
value: string;
|
||||
value: string | null;
|
||||
}
|
||||
|
||||
export interface RadioDropdownProps {
|
||||
value: string;
|
||||
onChange: (bodyType: string) => void;
|
||||
value: string | null;
|
||||
onChange: (value: string | null) => void;
|
||||
items: RadioDropdownItem[];
|
||||
children: DropdownProps['children'];
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ export const Tabs = memo(function Tabs({
|
||||
{tabs.map((t) => {
|
||||
const isActive = t.value === value;
|
||||
if (t.options && isActive) {
|
||||
console.log('OPTIONS', t.options, t.options?.value);
|
||||
return (
|
||||
<RadioDropdown
|
||||
key={t.value}
|
||||
|
||||
Reference in New Issue
Block a user