diff --git a/src/components/SearchItem/search-item.module.scss b/src/components/SearchItem/search-item.module.scss deleted file mode 100644 index 8371e4e2..00000000 --- a/src/components/SearchItem/search-item.module.scss +++ /dev/null @@ -1,57 +0,0 @@ -.link { - padding: 20px 30px; - display: flex; - align-items: center; - min-height: 30px; - color: #343434; - text-decoration: none; - transition: color 0.25s; -} - -.image { - width: 34px; - height: 34px; - margin-right: 20px; - flex: 0 0 auto; -} - -.number { - margin: 0; - font-size: 14px; - line-height: 12px; - font-weight: 400; - color: #bdc2d3; -} - -.price { - display: flex; - align-items: center; - font-size: 16px; - font-weight: 400; - margin: 0; - color: #343434; -} - -.wrapper { - display: flex; - flex-direction: column; - margin-right: 20px; - flex: 1; -} - -.paragraph { - font-size: 15px; - font-weight: 400; - line-height: 1.2; - margin: 0 0 5px; -} - -.price-wrapper { - display: flex; - flex: 0 0 auto; - column-gap: 20px; -} - -.image-link { - visibility: visible; -} diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 2eaab324..1656090e 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -1,7 +1,6 @@ import { useMemo } from 'react' import classNames from 'classnames' import Logo from '../logo/Logo' -import Search from '../search/search' import ArrowIcon from '@/assets/icons/arrow.svg' import LightningIcon from '@/assets/images/header/lightning.svg' import ContextMenuElement from '../ContextMenuElement/ContextMenuElement' @@ -15,6 +14,7 @@ import { CatalogLinksId } from '@/shared/config/catalogLinks/catalogLinks' import Link from '@/shared/ui/Link/Link' import IconCategories from '@/assets/icons/IconCategories.svg' import styles from './header.module.scss' +import SearchProduct from '@/features/SearchProduct' function Header() { const aboutUsNode = useMemo( @@ -152,7 +152,7 @@ function Header() {
{name}
{number} diff --git a/src/features/SearchProduct/index.tsx b/src/features/SearchProduct/index.tsx new file mode 100644 index 00000000..72a0e547 --- /dev/null +++ b/src/features/SearchProduct/index.tsx @@ -0,0 +1,2 @@ +import SearchProduct from './ui/SearchProduct' +export default SearchProduct diff --git a/src/components/search/search.module.scss b/src/features/SearchProduct/ui/SearchProduct.module.scss similarity index 58% rename from src/components/search/search.module.scss rename to src/features/SearchProduct/ui/SearchProduct.module.scss index 01c914b6..b2279efd 100644 --- a/src/components/search/search.module.scss +++ b/src/features/SearchProduct/ui/SearchProduct.module.scss @@ -1,4 +1,4 @@ -@use '../../shared/styles/utils/variables' as var; +@use '@/shared/styles/utils/variables' as var; .form { width: 100%; @@ -14,14 +14,6 @@ .button { width: 90px; height: 38px; - display: flex; - align-items: center; - justify-content: center; - background-color: var.$theme-primary-color; - border: none; - box-sizing: border-box; - color: var.$white; - border-radius: 5px; margin-right: 5px; } diff --git a/src/features/SearchProduct/ui/SearchProduct.stories.tsx b/src/features/SearchProduct/ui/SearchProduct.stories.tsx new file mode 100644 index 00000000..3c6bee42 --- /dev/null +++ b/src/features/SearchProduct/ui/SearchProduct.stories.tsx @@ -0,0 +1,12 @@ +import { Meta, Story } from '@storybook/react' +import SearchProduct from './SearchProduct' + +export default { + title: 'Features/SearchProduct', + component: SearchProduct +} as Meta + +const Template: Story = () =>{item.name}
Категория @@ -39,9 +41,11 @@ const SearchResult: FC