Migrated Storybook notation from CSF2 to CSF3 (#487)

* Migrate common directory to CSF3 notation

* Migrate InstalledPackages directory to CSF3 notation

* Migrate modal directory to CSF3 notation

* Migrate repository directory to CSF3 notation

* Migrate others components to CSF3 notation

* Fix lint error in repository directory
This commit is contained in:
kame
2023-11-02 03:11:57 +09:00
committed by GitHub
parent f465c83c07
commit de1915e1c2
23 changed files with 415 additions and 467 deletions

View File

@@ -1,39 +1,37 @@
import { ComponentStory } from "@storybook/react";
import { Meta } from "@storybook/react";
import StatusLabel, { DeploymentStatus } from "./StatusLabel";
export default {
const meta = {
title: "StatusLabel",
component: StatusLabel,
} satisfies Meta<typeof StatusLabel>;
export default meta;
export const Deployed = {
args: {
status: DeploymentStatus.DEPLOYED,
isRollback: false,
},
};
const Template: ComponentStory<typeof StatusLabel> = (args) => (
<StatusLabel {...args} />
);
export const Deployed = Template.bind({});
Deployed.args = {
status: DeploymentStatus.DEPLOYED,
isRollback: false,
export const Failed = {
args: {
status: DeploymentStatus.FAILED,
isRollback: false,
},
};
export const Failed = Template.bind({});
Failed.args = {
status: DeploymentStatus.FAILED,
isRollback: false,
export const Pending = {
args: {
status: DeploymentStatus.PENDING,
isRollback: false,
},
};
export const Pending = Template.bind({});
Pending.args = {
status: DeploymentStatus.PENDING,
isRollback: false,
};
export const Superseded = Template.bind({});
Superseded.args = {
status: DeploymentStatus.SUPERSEDED,
isRollback: false,
export const Superseded = {
args: {
status: DeploymentStatus.SUPERSEDED,
isRollback: false,
},
};