File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default function Home({ headerFooter, products }) {
18
18
return (
19
19
< div >
20
20
< Header header = { header } />
21
- < main className = "container mx-auto p -4" >
21
+ < main className = "container mx-auto py -4" >
22
22
< Products products = { products } />
23
23
</ main >
24
24
Original file line number Diff line number Diff line change 1
1
import { isArray , isEmpty } from 'lodash' ;
2
2
import Link from 'next/link' ;
3
3
import Image from '../image' ;
4
+ import { sanitize } from '../../utils/miscellaneous' ;
4
5
5
6
const Products = ( { products } ) => {
6
7
@@ -25,6 +26,7 @@ const Products = ({ products }) => {
25
26
height = "380"
26
27
/>
27
28
< h3 className = "font-bold uppercase" > { product ?. name ?? '' } </ h3 >
29
+ < div dangerouslySetInnerHTML = { { __html : sanitize ( product ?. price_html ?? '' ) } } />
28
30
</ a >
29
31
</ Link >
30
32
</ div >
You can’t perform that action at this time.
0 commit comments