general updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user