1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 16:29:44 +02:00
portainer/app/react/docker/services/ItemView/ServiceWidget.stories.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
741 B
TypeScript
Raw Normal View History

import type { Meta, StoryObj } from '@storybook/react';
import { withUserProvider } from '@/react/test-utils/withUserProvider';
import { ServiceWidget } from './ServiceWidget';
const Wrapped = withUserProvider(ServiceWidget);
const meta: Meta<typeof ServiceWidget> = {
component: ServiceWidget,
render: (args) => <Wrapped {...args} />,
args: {
titleIcon: 'icon-name',
title: 'Service Widget',
onAdd: () => {},
hasChanges: false,
onReset: () => {},
onSubmit: () => {},
labelForAddButton: 'Add',
isValid: true,
children: <div className="p-5">This service has no ports published.</div>,
},
};
export default meta;
type Story = StoryObj<typeof ServiceWidget>;
export const Default: Story = {};