Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stasguma committed Mar 19, 2024
1 parent f6c8385 commit 502ac1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions config/storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import type { Preview } from '@storybook/react';

import '../../src/app/styles/index.scss';

// import i18n from '../../src/shared/config/i18n/i18n';
import { withThemeDecorator } from '../../src/shared/config/storybook/decorators/withThemeDecorator';
import { withLangDecorator } from '../../src/shared/config/storybook/decorators/withLangDecorator';
import { withRouterDecorator } from '../../src/shared/config/storybook/decorators/withRouterDecorator';
import { withStoreDecorator } from '../../src/shared/config/storybook/decorators/withStoreDecorator';
import { withThemeByDataAttribute } from '@storybook/addon-themes';

const preview: Preview = {
parameters: {
Expand Down
12 changes: 2 additions & 10 deletions src/pages/HomePage/ui/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
import { type FC } from 'react';
// import { useTranslation } from 'react-i18next';

import { Typography } from '@/shared/ui';
// import { changeName } from '@/entities/User';

const HomePage: FC = () => {
// const { t } = useTranslation();
const { Title } = Typography;

// const changeNameHandler = () => {
// dispatch(changeName('SuperStas'));
// };

return (
<>
{ }
{/* <Button variant="filled" onClick={changeNameHandler}>Change user name</Button> */}
<p>{}</p>
{/* eslint-disable */}
<Title variant="1">Heading 1</Title>
<Title variant="3" as="h1">Heading 3 as H1</Title>
<Title variant="2">Heading 2</Title>
<Title variant="3">Heading 3</Title>
<Title variant="4">Heading 4</Title>
{/* eslint-enable */}
</>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/Typography/Paragraph/Paragraph.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export const ParagraphSizes: Story = {
<Paragraph size="sm">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Facere, impedit non. Libero explicabo blanditiis mollitia quae quod similique ad vitae autem voluptatibus labore doloremque totam, voluptatum repellendus nam rem delectus suscipit fugit doloribus! Adipisci corporis et reiciendis! Nihil sed earum aperiam debitis veritatis, natus dicta quasi cum beatae est quia!</Paragraph>
</div>
),
};
};

0 comments on commit 502ac1e

Please sign in to comment.