File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ const Categories = ({ categories }: ICategoriesProps) => (
11
11
{ categories . map ( ( { id, name, slug } ) => (
12
12
< Link
13
13
key = { uuidv4 ( ) }
14
- as = { `/kategori/${ slug } ?id=${ id } ` }
15
- href = "/kategori/[id]"
16
- passHref
14
+ href = { `/kategori/${ encodeURIComponent ( slug ) } ?id=${ encodeURIComponent ( id ) } ` }
17
15
>
18
16
< div className = "p-6 cursor-pointer" >
19
17
< div className = "flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline" >
Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ interface IDisplayProductsProps {
48
48
49
49
const DisplayProducts = ( { products } : IDisplayProductsProps ) => (
50
50
< section className = "container mx-auto bg-white" >
51
- < div id = "product-container" className = "flex flex-wrap items-center mb-[120px] md:mb-0" >
51
+ < div
52
+ id = "product-container"
53
+ className = "flex flex-wrap items-center mb-[120px] md:mb-0"
54
+ >
52
55
{ products ? (
53
56
products . map (
54
57
( {
@@ -103,7 +106,6 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
103
106
) }
104
107
</ span >
105
108
</ Link >
106
-
107
109
< Link
108
110
href = { `/produkt/${ encodeURIComponent (
109
111
slug ,
@@ -132,7 +134,9 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
132
134
) }
133
135
{ /* Display regular price when not on sale */ }
134
136
{ ! onSale && (
135
- < p className = "pt-1 text-center text-gray-900 text-xl" > { price } </ p >
137
+ < p className = "pt-1 text-center text-gray-900 text-xl" >
138
+ { price }
139
+ </ p >
136
140
) }
137
141
</ div >
138
142
) ;
You can’t perform that action at this time.
0 commit comments