Skip to content

Commit

Permalink
Fixing a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Kelidari committed Sep 7, 2024
1 parent 481dd1f commit f980c30
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/_Components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Header(): JSX.Element {
name={item.name}
image={item.image}
category={item.category}
className={item.className}
customClassName={item.customClassName}
/>
))}
</header>
Expand Down
4 changes: 2 additions & 2 deletions components/Product/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ export default function Product({
name,
image,
category,
className,
customClassName,
price,
offPrice,
}: ItemType) {
return (
<a
href="#"
className={
className +
customClassName +
" relative rounded-xl overflow-hidden sm:hover:shadow-lg transition-all group"
}
>
Expand Down
8 changes: 4 additions & 4 deletions utils/Statics/Header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ItemType } from "./types";

/**
* List of Header section's items
*
*
* Usually 5 item
*/
export const HeaderItems: ItemType[] = [
Expand All @@ -15,7 +15,7 @@ export const HeaderItems: ItemType[] = [
name: "کتابخانه ها",
category: "دکوراسیون خانگی",
image: "book-shelf-1.webp",
className: "sm:col-start-2 sm:col-end-4 max-sm:order-first",
customClassName: "sm:col-start-2 sm:col-end-4 max-sm:order-first",
},
{
name: "میز های کامپیوتر",
Expand All @@ -26,12 +26,12 @@ export const HeaderItems: ItemType[] = [
name: "مبلمان",
category: "دکوراسیون خانگی",
image: "furniture-1.webp",
className: "sm:col-span-2",
customClassName: "sm:col-span-2",
},
{
name: "میز های جلو مبلی",
image: "mini-table-1.webp",
category: "دکوراسیون خانگی",
className: "sm:col-span-2",
customClassName: "sm:col-span-2",
},
];
2 changes: 1 addition & 1 deletion utils/Statics/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ export interface ItemType {
*
* Optional, Example: `order-first`
*/
className?: string;
customClassName?: string;
}

0 comments on commit f980c30

Please sign in to comment.