This commit is contained in:
@@ -99,7 +99,7 @@ export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Stacked: Story = {
|
||||
render: (args) => {
|
||||
render: function StackedRender(args) {
|
||||
const [value, setValue] = useState(args.value);
|
||||
return (
|
||||
<Dropdown
|
||||
@@ -119,7 +119,7 @@ export const Inline: Story = {
|
||||
layout: 'inline',
|
||||
size: 'sm',
|
||||
},
|
||||
render: (args) => {
|
||||
render: function InlineRender(args) {
|
||||
const [value, setValue] = useState(args.value);
|
||||
return (
|
||||
<Dropdown
|
||||
@@ -147,7 +147,7 @@ export const WithError: Story = {
|
||||
};
|
||||
|
||||
export const SizeMatrix: Story = {
|
||||
render: (args) => {
|
||||
render: function SizeMatrixRender(args) {
|
||||
const [value, setValue] = useState(args.value);
|
||||
return (
|
||||
<div className="grid grid-cols-1 gap-3">
|
||||
|
||||
Reference in New Issue
Block a user