Skip to content

Commit

Permalink
Article componentes moved to features
Browse files Browse the repository at this point in the history
  • Loading branch information
tocs77 committed Jul 31, 2023
1 parent 81e18f0 commit 1b3cabd
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/entities/Article/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ export type { ArticleDetailsSchema, StoreWithArticleDetails } from './model/type
export { ARTICLE_DETAILS_SLICE_NAME } from './model/types/articleDetailsSchema';
export { getArticleDetailsData } from './model/selectors/articleDetails';
export { ArticleList } from './ui/ArticleList/ArticleList';
export { ArticleViewSelector } from './ui/ArtilceViewSelector/ArticleViewSelector';
export { ArticleSortSelector } from './ui/ArticleSortSelector/ui/ArticleSortSelector';
export { ArticleTypeTabs } from './ui/ArticleTypeTabs/ArticleTypeTabs';
1 change: 1 addition & 0 deletions src/features/ArticleSortSelector/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ArticleSortSelector } from './ui/ArticleSortSelector';
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { classNames } from '@/shared/lib/classNames/classNames';
import { Select, SelectOption } from '@/shared/ui/Select';
import { SortOrder } from '@/shared/types';

import { ArticleSortField } from '../../../model/consts/consts';
import { ArticleSortField } from '@/entities/Article';
import classes from './ArticleSortSelector.module.scss';

interface ArticleSortSelectorProps {
Expand Down
1 change: 1 addition & 0 deletions src/features/ArticleTypeTabs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ArticleTypeTabs } from './ui/ArticleTypeTabs';
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { memo, useCallback, useMemo } from 'react';

import { classNames } from '@/shared/lib/classNames/classNames';
import { TabItem, Tabs } from '@/shared/ui/Tabs';

import { ArticleType } from '../../model/consts/consts';
import { ArticleType } from '@/entities/Article';

interface ArticleTypeTabsProps {
className?: string;
Expand Down
1 change: 1 addition & 0 deletions src/features/ArtilceViewSelector/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ArticleViewSelector } from './ui/ArticleViewSelector';
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ArticleViewSelector } from './ArticleViewSelector';
import { ArticleView } from '@/entities/Article';

const meta = {
title: 'entities/ArticleViewSelector',
title: 'features/ArticleViewSelector',
component: ArticleViewSelector,
args: {
onViewClick: () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { memo } from 'react';
import { classNames } from '@/shared/lib/classNames/classNames';
import classes from './ArticleViewSelector.module.scss';
import { ArticleView } from '../../model/consts/consts';
import { ArticleView } from '@/entities/Article';

import TileIcon from '@/shared/assets/icons/tiled-24-24.svg';
import ListIcon from '@/shared/assets/icons/list-24-24.svg';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import { useTranslation } from 'react-i18next';
import { classNames } from '@/shared/lib/classNames/classNames';
import { Card } from '@/shared/ui/Card/ui/Card';
import { Input } from '@/shared/ui/Input';
import { ArticleSortField, ArticleView, ArticleViewSelector, ArticleTypeTabs } from '@/entities/Article';
import { ArticleSortField, ArticleView } from '@/entities/Article';
import { useAppDispatch } from '@/shared/lib/hooks/useAppDispatch/useAppDispatch';
import { ArticleSortSelector, ArticleType } from '@/entities/Article';
import { ArticleType } from '@/entities/Article';
import { ArticleSortSelector } from '@/features/ArticleSortSelector';
import { ArticleTypeTabs } from '@/features/ArticleTypeTabs';
import { ArticleViewSelector } from '@/features/ArtilceViewSelector';
import { SortOrder } from '@/shared/types';
import { useDebounce } from '@/shared/lib/hooks/useDebounce/useDebounce';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const meta = {
title: 'shared/Modal',
component: Modal,
args: {
children: 'Super modal',
children: <h2>{'Super modal'}</h2>,
isOpen: true,
},
tags: ['autodocs'],
Expand Down

0 comments on commit 1b3cabd

Please sign in to comment.