Skip to content

Commit

Permalink
feat: refactor articleSortSelector to feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Mar 17, 2024
1 parent 3c43b6a commit 26da0bb
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/entities/Article/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export { articleDetailsActions, articleDetailsReducer } from './model/slice/arti
export type { ArticleDetailsSchema } from './model/types/articleDetailsSchema';
export { getArticlesDetailsData } from './model/selectors/articleDetails';
export { ArticleList } from './ui/ArticleList/ArticleList';
export { ArticleSortSelector } from './ui/ArticleSortSelector/ArticleSortSelector';

export type { Article } from './model/types/article';
export {
ArticleType, ArticleView, ArticleBlockType, ArticleSortField,
Expand Down
1 change: 1 addition & 0 deletions src/features/ArtilcleSortSelector/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 @@ -3,8 +3,8 @@ import { memo, useMemo } from 'react';
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 cls from './ArticleSortSelector.module.scss';
import { ArticleSortField } from '@/entities/Article';

interface ArticleSortSelectorProps {
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ArticleTypeTabs } from '@/features/ArticleTypeTabs';
import { fetchArticlesList } from '../../model/services/fetchArticlesList/fetchArticlesList';
import {
ArticleSortField,
ArticleSortSelector, ArticleType,
ArticleType,
ArticleView,
} from '@/entities/Article';
import { articlesPageActions } from '../../model/slices/articlesPageSlice';
Expand All @@ -24,6 +24,7 @@ import {
getArticlesPageView,
} from '../../model/selectors/articlesPageSelectors';
import cls from './ArticlesPageFilters.module.scss';
import { ArticleSortSelector } from '@/features/ArtilcleSortSelector';

interface ArticlesPageFiltersProps {
className?: string;
Expand Down

0 comments on commit 26da0bb

Please sign in to comment.