Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change top-selling categories selector chips layout #311

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading