-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Статья": "Article", | ||
"Список статей": "List of articles" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Статья": "Статья", | ||
"Список статей": "Список статей" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ArticleDetailsPageAsync as ArticleDetailsPage } from './ui/ArticleDetailsPage/ArticleDetailsPage.async'; |
6 changes: 6 additions & 0 deletions
6
src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.async.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { lazy } from 'react'; | ||
|
||
export const ArticleDetailsPageAsync = lazy( | ||
() => import('./ArticleDetailsPage') | ||
.then((module) => ({ default: module.ArticleDetailsPage })), | ||
); |
3 changes: 3 additions & 0 deletions
3
src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* stylelint-disable-next-line */ | ||
.articleDetailsPage { | ||
} |
16 changes: 16 additions & 0 deletions
16
src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { ComponentMeta, ComponentStory } from '@storybook/react'; | ||
|
||
import { ArticleDetailsPage } from './ArticleDetailsPage'; | ||
|
||
export default { | ||
title: 'shared/ArticleDetailsPage', | ||
component: ArticleDetailsPage, | ||
argTypes: { | ||
backgroundColor: { control: 'color' }, | ||
}, | ||
} as ComponentMeta<typeof ArticleDetailsPage>; | ||
|
||
const Template: ComponentStory<typeof ArticleDetailsPage> = (args) => <ArticleDetailsPage {...args} />; | ||
|
||
export const Normal = Template.bind({}); | ||
Normal.args = {}; |
24 changes: 24 additions & 0 deletions
24
src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { memo } from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import { classNames } from 'shared/lib/classNames'; | ||
|
||
import cls from './ArticleDetailsPage.module.scss'; | ||
|
||
interface ArticleDetailsPageProps { | ||
className?: string; | ||
} | ||
|
||
export const ArticleDetailsPage = memo((props: ArticleDetailsPageProps) => { | ||
const { className } = props; | ||
|
||
const { t } = useTranslation('article'); | ||
|
||
return ( | ||
<div className={classNames(cls.articleDetailsPage, {}, [className])}> | ||
{t('Статья')} | ||
</div> | ||
); | ||
}); | ||
|
||
ArticleDetailsPage.displayName = 'ArticleDetailsPage'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ArticlesPageAsync as ArticlesPage } from './ui/ArticlesPage/ArticlesPage.async'; |
6 changes: 6 additions & 0 deletions
6
src/pages/ArticlesPage/ui/ArticlesPage/ArticlesPage.async.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { lazy } from 'react'; | ||
|
||
export const ArticlesPageAsync = lazy( | ||
() => import('./ArticlesPage') | ||
.then((module) => ({ default: module.ArticlesPage })), | ||
); |
3 changes: 3 additions & 0 deletions
3
src/pages/ArticlesPage/ui/ArticlesPage/ArticlesPage.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* stylelint-disable-next-line */ | ||
.articlesPage { | ||
} |
16 changes: 16 additions & 0 deletions
16
src/pages/ArticlesPage/ui/ArticlesPage/ArticlesPage.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { ComponentMeta, ComponentStory } from '@storybook/react'; | ||
|
||
import { ArticlesPage } from './ArticlesPage'; | ||
|
||
export default { | ||
title: 'shared/ArticlesPage', | ||
component: ArticlesPage, | ||
argTypes: { | ||
backgroundColor: { control: 'color' }, | ||
}, | ||
} as ComponentMeta<typeof ArticlesPage>; | ||
|
||
const Template: ComponentStory<typeof ArticlesPage> = (args) => <ArticlesPage {...args} />; | ||
|
||
export const Normal = Template.bind({}); | ||
Normal.args = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { memo } from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import { classNames } from 'shared/lib/classNames'; | ||
|
||
import cls from './ArticlesPage.module.scss'; | ||
|
||
interface ArticlesPageProps { | ||
className?: string; | ||
} | ||
|
||
export const ArticlesPage = memo((props: ArticlesPageProps) => { | ||
const { className } = props; | ||
|
||
const { t } = useTranslation('article'); | ||
|
||
return ( | ||
<div className={classNames(cls.articlesPage, {}, [className])}> | ||
{t('Список статей')} | ||
</div> | ||
); | ||
}); | ||
|
||
ArticlesPage.displayName = 'ArticlesPage'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters