♻️(react) migrate to Storybook 7

This new release comes with breaking changes for stories and mdx docs.
This commit is contained in:
Nathan Vasse
2023-05-12 16:03:16 +02:00
committed by NathanVss
parent e7fc782b1c
commit 77721c3b6d
24 changed files with 2639 additions and 4187 deletions

View File

@@ -1,13 +1,15 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Meta, StoryFn } from "@storybook/react";
import React from "react";
import { Loader } from ":/components/Loader/index";
export default {
title: "Components/Loader (WIP)",
component: Loader,
} as ComponentMeta<typeof Loader>;
} as Meta<typeof Loader>;
const Template: ComponentStory<typeof Loader> = () => <Loader />;
const Template: StoryFn<typeof Loader> = () => <Loader />;
export const Default = Template.bind({});
Default.args = {};
export const Default = {
render: Template,
args: {},
};