From c87fccacc6ac872653a8095c4e34350f698937ad Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Sun, 5 Jul 2020 04:18:19 +0200 Subject: [PATCH] Add description to search results --- components/Search/SearchResults.component.jsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/components/Search/SearchResults.component.jsx b/components/Search/SearchResults.component.jsx index 8a48db714..83fc93d02 100644 --- a/components/Search/SearchResults.component.jsx +++ b/components/Search/SearchResults.component.jsx @@ -3,7 +3,14 @@ * @param {Object} props */ const SearchResults = ({ - hit: { product_image, product_name, regular_price, sale_price, on_sale }, + hit: { + product_image, + product_name, + regular_price, + sale_price, + on_sale, + short_description, + }, }) => { return (
@@ -22,15 +29,13 @@ const SearchResults = ({
{on_sale && ( <> - - kr {regular_price} - + kr {regular_price} kr {sale_price} )} - {!on_sale && ( - kr {regular_price} - )} + {!on_sale && kr {regular_price}} +
+ {short_description}