♻️(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 { Canvas, Meta, Story, Source, ArgTypes } from '@storybook/blocks';
|
||||
import { Pagination, usePagination } from './index';
|
||||
import * as Stories from './index.stories';
|
||||
|
||||
@@ -61,8 +61,8 @@ You can also set the page programmatically, for example, if you want to use a qu
|
||||
|
||||
### `<Pagination/>` component
|
||||
|
||||
<ArgsTable of={Pagination} />
|
||||
<ArgTypes of={Pagination} />
|
||||
|
||||
### `usePagination` hook
|
||||
|
||||
<ArgsTable of={usePagination} />
|
||||
<ArgTypes of={usePagination} />
|
||||
Reference in New Issue
Block a user