@riosst100/pwa-marketplace 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,7 +8,21 @@ const LinkToOtherStores = (props) => {
|
|
|
8
8
|
const linkToOtherStores = productDetails?.link_to_other_stores;
|
|
9
9
|
|
|
10
10
|
// Convert the JSON string to an array
|
|
11
|
-
const storesArray = JSON.parse(linkToOtherStores);
|
|
11
|
+
// const storesArray = JSON.parse(linkToOtherStores);
|
|
12
|
+
const storesArray = [
|
|
13
|
+
{
|
|
14
|
+
'product_link': 'https://shopee.sg',
|
|
15
|
+
'stores': 'Shopee'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
'product_link': 'https://tokopedia.com',
|
|
19
|
+
'stores': 'Tokopedia'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
'product_link': 'https://lazada.sg',
|
|
23
|
+
'stores': 'Lazada'
|
|
24
|
+
}
|
|
25
|
+
];
|
|
12
26
|
|
|
13
27
|
const getLogo = (stores) => {
|
|
14
28
|
let img = '';
|