Skip to content

Commit

Permalink
поправить положение mockData и models
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKhelshtein committed Mar 4, 2024
1 parent 068a0da commit 1374870
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/entities/SearchResult/SearchResult.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/shared/model/types/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TCategory } from '@/models/CategoryModel'
import { TCategory } from '@/shared/model/CategoryModel'

export type TProduct = {
name: string
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/CategoryCard/ui/CategoryCard.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/CategoryGrid/CategoryGrid.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
4 changes: 2 additions & 2 deletions src/widgets/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1374870

Please sign in to comment.