From 1374870ce6c676df25718e347cb6922a2a5b2bbc Mon Sep 17 00:00:00 2001 From: Artur Khelshtein Date: Mon, 4 Mar 2024 20:19:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BF=D0=BE=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20mockData=20=D0=B8=20models?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/SearchResult/SearchResult.tsx | 2 +- src/{ => shared}/mockData/catalogListData.ts | 0 src/{ => shared}/mockData/coreBaseData.ts | 0 src/{ => shared}/mockData/headerAccountData.ts | 0 src/{models => shared/model}/CategoryModel.ts | 0 src/shared/model/types/common.ts | 2 +- src/shared/ui/CategoryCard/ui/CategoryCard.tsx | 2 +- src/widgets/CategoryGrid/CategoryGrid.tsx | 2 +- src/widgets/Header/Header.tsx | 4 ++-- 9 files changed, 6 insertions(+), 6 deletions(-) rename src/{ => shared}/mockData/catalogListData.ts (100%) rename src/{ => shared}/mockData/coreBaseData.ts (100%) rename src/{ => shared}/mockData/headerAccountData.ts (100%) rename src/{models => shared/model}/CategoryModel.ts (100%) diff --git a/src/entities/SearchResult/SearchResult.tsx b/src/entities/SearchResult/SearchResult.tsx index f6a14a02..a5475f66 100644 --- a/src/entities/SearchResult/SearchResult.tsx +++ b/src/entities/SearchResult/SearchResult.tsx @@ -1,9 +1,9 @@ import { forwardRef } from 'react' import SearchItem from '@/entities/SearchItem/SearchItem' -import { TCategory } from '@/models/CategoryModel' import { Routes } from '@/shared/config/routerConfig/routes' import { SEARCH_CATEGORY, SEARCH_PRODUCT } from '@/shared/constants/constants' +import { TCategory } from '@/shared/model/CategoryModel' import type { TProduct } from '@/shared/model/types/common' import Link from '@/shared/ui/Link/Link' diff --git a/src/mockData/catalogListData.ts b/src/shared/mockData/catalogListData.ts similarity index 100% rename from src/mockData/catalogListData.ts rename to src/shared/mockData/catalogListData.ts diff --git a/src/mockData/coreBaseData.ts b/src/shared/mockData/coreBaseData.ts similarity index 100% rename from src/mockData/coreBaseData.ts rename to src/shared/mockData/coreBaseData.ts diff --git a/src/mockData/headerAccountData.ts b/src/shared/mockData/headerAccountData.ts similarity index 100% rename from src/mockData/headerAccountData.ts rename to src/shared/mockData/headerAccountData.ts diff --git a/src/models/CategoryModel.ts b/src/shared/model/CategoryModel.ts similarity index 100% rename from src/models/CategoryModel.ts rename to src/shared/model/CategoryModel.ts diff --git a/src/shared/model/types/common.ts b/src/shared/model/types/common.ts index 8bab6046..9db27193 100644 --- a/src/shared/model/types/common.ts +++ b/src/shared/model/types/common.ts @@ -1,4 +1,4 @@ -import { TCategory } from '@/models/CategoryModel' +import { TCategory } from '@/shared/model/CategoryModel' export type TProduct = { name: string diff --git a/src/shared/ui/CategoryCard/ui/CategoryCard.tsx b/src/shared/ui/CategoryCard/ui/CategoryCard.tsx index a80a877b..817db36b 100644 --- a/src/shared/ui/CategoryCard/ui/CategoryCard.tsx +++ b/src/shared/ui/CategoryCard/ui/CategoryCard.tsx @@ -1,7 +1,7 @@ import { type FC } from 'react' -import { TCategory } from '@/models/CategoryModel' import { Routes } from '@/shared/config/routerConfig/routes' +import { TCategory } from '@/shared/model/CategoryModel' import Link from '@/shared/ui/Link/Link' import Subheading from '../../Subheading/Subheading' diff --git a/src/widgets/CategoryGrid/CategoryGrid.tsx b/src/widgets/CategoryGrid/CategoryGrid.tsx index b447124f..fb2891cb 100644 --- a/src/widgets/CategoryGrid/CategoryGrid.tsx +++ b/src/widgets/CategoryGrid/CategoryGrid.tsx @@ -1,5 +1,5 @@ -import { catalogListData } from '@/mockData/catalogListData' import { TEXT_POPULAR_CATEGORIES } from '@/shared/constants/constants' +import { catalogListData } from '@/shared/mockData/catalogListData' import CategoryCard from '@/shared/ui/CategoryCard/ui/CategoryCard' import Heading from '@/shared/ui/Heading/Heading' diff --git a/src/widgets/Header/Header.tsx b/src/widgets/Header/Header.tsx index 90b6e9fb..033cf38b 100644 --- a/src/widgets/Header/Header.tsx +++ b/src/widgets/Header/Header.tsx @@ -8,11 +8,11 @@ import { fetchCategories } from '@/entities/Category/slice/categorySlice' import HeaderAccount from '@/entities/HeaderAccount/HeaderAccount' import CallBack from '@/features/CallBack' import SearchProduct from '@/features/SearchProduct' -import { linkItems } from '@/mockData/catalogListData' -import { headerAccountData } from '@/mockData/headerAccountData' import { Routes } from '@/shared/config/routerConfig/routes' import ArrowIcon from '@/shared/icons/arrow.svg' import IconCategories from '@/shared/icons/IconCategories.svg' +import { linkItems } from '@/shared/mockData/catalogListData' +import { headerAccountData } from '@/shared/mockData/headerAccountData' import CatalogLink from '@/shared/ui/CatalogLink/CatalogLink' import ContextMenuElement from '@/shared/ui/ContextMenuElement/ContextMenuElement' import Link from '@/shared/ui/Link/Link'