From a6876503e793e18245894c71b325c3e9be677f71 Mon Sep 17 00:00:00 2001 From: Artem Sibisov Date: Sun, 28 Jan 2024 22:24:42 +0800 Subject: [PATCH] =?UTF-8?q?#150=20enhancement:=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D1=82=D1=83=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=BB?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=B0=20=D0=B1=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=B4=D0=BE=D0=B2=20=D0=BA=20=D0=BF=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D1=83=20=D0=BD=D0=B0=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/constants/constants.ts | 3 +++ src/widgets/BrandBlock/ui/BrandBlock/BrandBlock.tsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared/constants/constants.ts b/src/shared/constants/constants.ts index ec509eee..ff3f1a8a 100644 --- a/src/shared/constants/constants.ts +++ b/src/shared/constants/constants.ts @@ -28,3 +28,6 @@ export const VIBER_LINK = 'viber://chat?number=79778480228' export const TELEGRAM_LINK = '//t.me/79778480228' export const EMAIL_LINK = 'mailto:mail@mail.ru' export const MAX_PRODUCTS_NUMBER: number = 99 + +//for BrandBlock component +export const BRANDS_FOR_MAIN_NUMBER: number = 6 diff --git a/src/widgets/BrandBlock/ui/BrandBlock/BrandBlock.tsx b/src/widgets/BrandBlock/ui/BrandBlock/BrandBlock.tsx index d2c6566e..65aba522 100644 --- a/src/widgets/BrandBlock/ui/BrandBlock/BrandBlock.tsx +++ b/src/widgets/BrandBlock/ui/BrandBlock/BrandBlock.tsx @@ -10,6 +10,7 @@ import Link from '@/shared/ui/Link/Link' import BrandCard from '@/entities/BrandCard/BrandCard' import { TEXT_OUR_BRANDS, TEXT_ALL_BRANDS } from '@/shared/constants/constants' import styles from './BrandBlock.module.scss' +import { BRANDS_FOR_MAIN_NUMBER } from '@/shared/constants/constants' /** * Компонент списка брендов для главной страницы. @@ -32,7 +33,7 @@ const BrandBlock = () => {