Storybook: Formatted SegmentAsync story (#77307)
This commit is contained in:
@@ -33,7 +33,7 @@ const SegmentFrame = ({
|
||||
children: React.ReactNode;
|
||||
}) => (
|
||||
<>
|
||||
<SegmentSection label="Segment Name">
|
||||
<SegmentSection label="Segment">
|
||||
{children}
|
||||
<Segment Component={AddButton} onChange={({ value }) => action('New value added')(value)} options={options} />
|
||||
</SegmentSection>
|
||||
|
||||
@@ -29,12 +29,13 @@ const SegmentFrame = ({
|
||||
loadOptions: (options: Array<SelectableValue<string>>) => Promise<Array<SelectableValue<string>>>;
|
||||
}>) => (
|
||||
<>
|
||||
<SegmentSection label="Segment Name">
|
||||
<SegmentSection label="Segment">
|
||||
{children}
|
||||
<SegmentAsync
|
||||
Component={AddButton}
|
||||
onChange={(value) => action('New value added')(value)}
|
||||
loadOptions={() => loadOptions(options)}
|
||||
inputMinWidth={100}
|
||||
/>
|
||||
</SegmentSection>
|
||||
</>
|
||||
|
||||
@@ -8,7 +8,7 @@ import { SegmentInputProps } from './SegmentInput';
|
||||
|
||||
const SegmentFrame = ({ children }: React.PropsWithChildren) => (
|
||||
<>
|
||||
<SegmentSection label="Segment Name">{children}</SegmentSection>
|
||||
<SegmentSection label="Segment">{children}</SegmentSection>
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user