♻️(react) migrate ArgsTable to ArgTypes and rework imports
Storybook was emitting warnings errors about the fact that ArgsTable is deprecated, and also I rewrote imports as those are not the one used in the doc anymore, this will prevent breaking changes in the upcoming upgrades.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Canvas, Meta, Story, Source, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Meta, ArgTypes } from '@storybook/blocks';
|
||||
import { Field } from "./index";
|
||||
import * as Stories from './index.stories';
|
||||
|
||||
@@ -23,4 +23,4 @@ available design token to do so.
|
||||
|
||||
## Props
|
||||
|
||||
<ArgsTable of={Field} exclude={["compact"]} />
|
||||
<ArgTypes of={Field} exclude={["compact"]} />
|
||||
Reference in New Issue
Block a user