diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/_app.jsx | 4 | ||||
| -rw-r--r-- | src/pages/google_merchant/products/[page].js | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index 4c4fed89..089622da 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -53,9 +53,9 @@ function MyApp({ Component, pageProps }) { <motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} - exit={{ opacity: 0 }} + exit={{ opacity: 0, transition: { delay: 0.15 } }} transition={{ - duration: 0.1 + duration: 0.15 }} className='fixed w-screen h-screen z-[500] bg-white flex justify-center items-center' > diff --git a/src/pages/google_merchant/products/[page].js b/src/pages/google_merchant/products/[page].js index aaa4dde4..6f41ce35 100644 --- a/src/pages/google_merchant/products/[page].js +++ b/src/pages/google_merchant/products/[page].js @@ -42,10 +42,12 @@ export async function getServerSideProps({ res, query }) { 'g:condition': { '#text': 'new' }, 'g:availability': { '#text': 'in_stock' }, 'g:brand': { '#text': product.manufacture?.name || '' }, - 'g:price': { '#text': `${product.lowestPrice.price} IDR` } + 'g:price': { '#text': `${Math.floor(product.lowestPrice.price * 1.11)} IDR` } } if (product.lowestPrice.discountPercentage > 0) { - item['g:sale_price'] = { '#text': `${product.lowestPrice.priceDiscount} IDR` } + item['g:sale_price'] = { + '#text': `${Math.floor(product.lowestPrice.priceDiscount * 1.11)} IDR` + } } productItems.push(item) }) |
