refactor: update install status handling in plugin installation process (#27594)
This commit is contained in:
@@ -23,6 +23,10 @@ const meta = {
|
||||
args: {
|
||||
items: ITEMS,
|
||||
value: 'all',
|
||||
// eslint-disable-next-line no-empty-function
|
||||
onSelect: () => {},
|
||||
// eslint-disable-next-line no-empty-function
|
||||
onClear: () => {},
|
||||
},
|
||||
} satisfies Meta<typeof Chip>
|
||||
|
||||
@@ -69,6 +73,13 @@ const [selection, setSelection] = useState('all')
|
||||
}
|
||||
|
||||
export const WithoutLeftIcon: Story = {
|
||||
args: {
|
||||
showLeftIcon: false,
|
||||
// eslint-disable-next-line no-empty-function
|
||||
onSelect: () => {},
|
||||
// eslint-disable-next-line no-empty-function
|
||||
onClear: () => {},
|
||||
},
|
||||
render: args => (
|
||||
<ChipDemo
|
||||
{...args}
|
||||
|
||||
@@ -103,7 +103,6 @@ export const Default: Story = {
|
||||
</button>
|
||||
</>
|
||||
),
|
||||
children: null,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -112,7 +111,6 @@ export const WithoutFooter: Story = {
|
||||
args: {
|
||||
footer: undefined,
|
||||
title: 'Read-only summary',
|
||||
children: null,
|
||||
},
|
||||
parameters: {
|
||||
docs: {
|
||||
@@ -130,7 +128,6 @@ export const CustomStyling: Story = {
|
||||
bodyClassName: 'bg-gray-50 rounded-xl p-5',
|
||||
footerClassName: 'justify-between px-4 pb-4 pt-4',
|
||||
titleClassName: 'text-lg text-primary-600',
|
||||
children: null,
|
||||
footer: (
|
||||
<>
|
||||
<span className="text-xs text-gray-400">Last synced 2 minutes ago</span>
|
||||
@@ -144,7 +141,6 @@ export const CustomStyling: Story = {
|
||||
</div>
|
||||
</>
|
||||
),
|
||||
children: null,
|
||||
},
|
||||
parameters: {
|
||||
docs: {
|
||||
|
||||
Reference in New Issue
Block a user