Skip to content

Commit

Permalink
#142-bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaAvramenko committed Feb 1, 2024
1 parent dbf6710 commit 67a1ba6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/entities/NewsCard/NewsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const NewsCard: FC<Props> = ({ image, date, title }) => {
{title}
</Heading>
<span>{newDate}</span>
{/* TODO */}
{/* {promo ? <span className={styles.promo}>{TEXT_PROMO}</span> : null} */}
</Link>
)
Expand Down
8 changes: 4 additions & 4 deletions src/widgets/NewsBlock/ui/NewsBlock.tsx
Original file line number Diff line number Diff line change
@@ -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'

/**
* Блок группы новостей
Expand Down

0 comments on commit 67a1ba6

Please sign in to comment.