Skip to content

Commit

Permalink
refactor: change top-selling categories selector chips layout
Browse files Browse the repository at this point in the history
Поменял верстку чипсов категорий лидеров продаж на главной странице

closes #306
  • Loading branch information
kavabunga authored and jsapro committed Jan 16, 2024
1 parent 4f853c8 commit 707fd57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/top-selling-this-week/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import api from '@services/api';
import type { Product } from '@services/generated-api/data-contracts';
import Button from '@components/Button';
import Button from '@components/button';
import ProductCard from '@components/product-card';
import styles from './top-selling-this-week.module.scss';

Expand Down Expand Up @@ -77,7 +77,7 @@ const TopSellingThisWeek: React.FC = () => {
<div className={styles.topSellingThisWeek}>
<h2 className={styles.topSellingThisWeek__title}>Лидеры продаж этой недели</h2>
<div className={styles.topSellingThisWeek__scrollContainer}>
<ul className={styles.topSellingThisWeek__buttonContainers}>
<ul className={styles.topSellingThisWeek__buttonContainer}>
<li>
<Button
buttonText="Все категории"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
}
}

.topSellingThisWeek__buttonContainers {
.topSellingThisWeek__buttonContainer {
margin: 0;
padding: 16px 0;
display: flex;
flex-wrap: wrap;
overflow-x: scroll;
justify-content: center;
gap: 16px;

Expand Down

0 comments on commit 707fd57

Please sign in to comment.