diff --git a/src/entities/NewsCard/NewsCard.tsx b/src/entities/NewsCard/NewsCard.tsx index a3fa6b9d..5a581025 100644 --- a/src/entities/NewsCard/NewsCard.tsx +++ b/src/entities/NewsCard/NewsCard.tsx @@ -36,6 +36,7 @@ const NewsCard: FC = ({ image, date, title }) => { {title} {newDate} + {/* TODO */} {/* {promo ? {TEXT_PROMO} : null} */} ) diff --git a/src/widgets/NewsBlock/ui/NewsBlock.tsx b/src/widgets/NewsBlock/ui/NewsBlock.tsx index b588231c..63340cad 100644 --- a/src/widgets/NewsBlock/ui/NewsBlock.tsx +++ b/src/widgets/NewsBlock/ui/NewsBlock.tsx @@ -1,14 +1,14 @@ import { FC, useEffect } from 'react' +import { getShopNewsSelector } from '../model/selectors/selectors' +import { useSelector } from 'react-redux' +import { useAppDispatch } from '@/shared/libs/hooks/store' +import { getShopNews } from '../model/services/getShopNews' import IconLink from '@/assets/icons/IconLink' import Heading, { HeadingType } from '@/shared/ui/Heading/Heading' import Link from '@/shared/ui/Link/Link' import styles from './NewsBlock.module.scss' import NewsCard from '@/entities/NewsCard/NewsCard' import Scroll from '@/shared/ui/Scroll/Scroll' -import { useAppDispatch } from '@/shared/libs/hooks/store' -import { getShopNewsSelector } from '../model/selectors/selectors' -import { useSelector } from 'react-redux' -import { getShopNews } from '../model/services/getShopNews' /** * Блок группы новостей