general updates

This commit is contained in:
2025-12-30 03:35:14 +03:00
parent dd11665743
commit e8c4bc909c
12 changed files with 124 additions and 53 deletions

View File

@@ -54,7 +54,7 @@ export function MenuList({ data, categoryRefs }: MenuListProps) {
return (
<>
<div className={styles.menuSections}>
{data?.categories?.map((category) => {
{data?.categories?.map((category, index) => {
const categoryProducts = productsByCategory?.[category.id] || [];
if (categoryProducts.length === 0) return null;
@@ -66,21 +66,24 @@ export function MenuList({ data, categoryRefs }: MenuListProps) {
categoryRefs.current[category.id] = el;
}
}}
style={{ marginBottom: "1rem" }}
style={{ marginBottom: "2rem" }}
>
<ProTitle
style={{
fontWeight: 600,
fontStyle: "SemiBold",
fontSize: "16px",
lineHeight: "140%",
letterSpacing: "0%",
color: themeName === "dark" ? "#fff" : "#070707",
}}
level={5}
>
{isRTL ? category.name : category.name}
</ProTitle>
{index !== 0 && (
<ProTitle
style={{
fontWeight: 600,
fontStyle: "SemiBold",
fontSize: "16px",
lineHeight: "140%",
letterSpacing: "0%",
color: themeName === "dark" ? "#fff" : "#070707",
marginBottom: 16,
}}
level={5}
>
{isRTL ? category.name : category.name}
</ProTitle>
)}
<div className={styles.menuItemsGrid}>
{categoryProducts.map((item: Product) => (
<ProductCard