Skip to content

Commit 95bf489

Browse files
committed
chore: fix lint
1 parent 52f92c8 commit 95bf489

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

packages/strapi-design-system/src/IconButton/IconButton.stories.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { Meta, Story, Canvas } from '@storybook/addon-docs';
44
import { ArgsTable } from '@storybook/addon-docs';
5+
import { useState } from 'react';
56

67
import Pencil from '@strapi/icons/Pencil';
78
import Play from '@strapi/icons/Play';
@@ -42,7 +43,7 @@ Icon Buttons are used to perform actions within a page, a table or another objec
4243
<Canvas>
4344
<Story name="base">
4445
{() => {
45-
const [currentAction, setCurrentAction] = React.useState('None Selected');
46+
const [currentAction, setCurrentAction] = useState('None Selected');
4647
return (
4748
<Box padding={7}>
4849
<Box paddingBottom={3}>
@@ -67,7 +68,7 @@ Depending on the status of an action or the permissions, an IconButton can be un
6768
<Canvas>
6869
<Story name="disabled">
6970
{() => {
70-
const [currentAction, setCurrentAction] = React.useState('None Selected');
71+
const [currentAction, setCurrentAction] = useState('None Selected');
7172
return (
7273
<Box padding={7}>
7374
<Box paddingBottom={3}>
@@ -121,7 +122,7 @@ IconButtons can take Icons as their children and can be fully accessible without
121122
<Canvas>
122123
<Story name="children">
123124
{() => {
124-
const [currentAction, setCurrentAction] = React.useState('None Selected');
125+
const [currentAction, setCurrentAction] = useState('None Selected');
125126
return (
126127
<Box padding={7}>
127128
<Box paddingBottom={3}>

packages/strapi-design-system/src/Status/Status.stories.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,25 @@ Use a Status sparingly within forms to give an important visual indication. Stat
4949
</Story>
5050
</Canvas>
5151

52-
5352
### Size
5453

5554
<Canvas>
5655
<Story name="size S">
5756
<Stack spacing={3}>
5857
<Status variant="success" size="S" showBullet={false}>
59-
<Typography fontWeight="bold" textColor="success700">Published</Typography>
58+
<Typography fontWeight="bold" textColor="success700">
59+
Published
60+
</Typography>
6061
</Status>
6162
<Status variant="secondary" size="S" showBullet={false}>
62-
<Typography fontWeight="bold" textColor="secondary700">Draft</Typography>
63+
<Typography fontWeight="bold" textColor="secondary700">
64+
Draft
65+
</Typography>
6366
</Status>
6467
<Status variant="alternative" size="S" showBullet={false}>
65-
<Typography fontWeight="bold" textColor="alternative700">Updated</Typography>
68+
<Typography fontWeight="bold" textColor="alternative700">
69+
Updated
70+
</Typography>
6671
</Status>
6772
</Stack>
6873
</Story>

packages/strapi-design-system/src/Switch/Switch.stories.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!--- Switch.stories.mdx --->
22

3+
import { useState } from 'react';
34
import { Meta, Story, Canvas } from '@storybook/addon-docs';
45
import { ArgsTable } from '@storybook/addon-docs';
56
import { Switch } from './Switch';
@@ -37,7 +38,7 @@ Activated state is one of two of them available for a Switch.
3738
<Canvas>
3839
<Story name="activated">
3940
{() => {
40-
const [activated, setActivated] = React.useState(true);
41+
const [activated, setActivated] = useState(true);
4142
return (
4243
<Switch
4344
label="Activate the microphone"
@@ -57,7 +58,7 @@ Deactivated state is one of two of them available for a Switch.
5758
<Canvas>
5859
<Story name="not-activated">
5960
{() => {
60-
const [activated, setActivated] = React.useState(false);
61+
const [activated, setActivated] = useState(false);
6162
return (
6263
<Switch
6364
label="Activate the microphone"

0 commit comments

Comments
 (0)