From 46e9912e70dc503cc426c1f90510dd8c27f896f5 Mon Sep 17 00:00:00 2001 From: Anang20 Date: Mon, 14 Nov 2022 11:09:29 +0700 Subject: [PATCH] fix: eslint rules --- components/Constraint/index.js | 6 +++--- components/Layout/DesktopLayout/DesktopLayout.js | 2 +- components/Location/index.js | 2 +- components/Transaction/index.js | 4 ++-- pages/[qrCode]/order/index.js | 8 ++++---- pages/[qrCode]/payment-order/index.js | 2 +- pages/policy-terms/index.js | 9 ++++++--- pages/success-payment/index.js | 9 ++++++--- 8 files changed, 24 insertions(+), 18 deletions(-) diff --git a/components/Constraint/index.js b/components/Constraint/index.js index dfb2755..d1b982d 100644 --- a/components/Constraint/index.js +++ b/components/Constraint/index.js @@ -43,7 +43,7 @@ const Constraint = ({ location }) => { return (
- + {'logo'}

Ada kendala dengan transaksimu?

Cek transaksi dengan Order ID pembayaran:

@@ -86,7 +86,7 @@ const Constraint = ({ location }) => {

Status Transaksi

- + {'icons'}/
{orderId} BELUM ADA TRANSAKSI @@ -100,7 +100,7 @@ const Constraint = ({ location }) => {

Status Transaksi

- + {'icons'}
{orderId}
diff --git a/components/Layout/DesktopLayout/DesktopLayout.js b/components/Layout/DesktopLayout/DesktopLayout.js index 3f9791d..c7bc5ed 100644 --- a/components/Layout/DesktopLayout/DesktopLayout.js +++ b/components/Layout/DesktopLayout/DesktopLayout.js @@ -16,7 +16,7 @@ const DesktopLayout = ({children, isGradient = false}) => {
{children}
{isGradient && (
- {'background'}
)} diff --git a/components/Location/index.js b/components/Location/index.js index e69b9a9..c8628ae 100644 --- a/components/Location/index.js +++ b/components/Location/index.js @@ -6,7 +6,7 @@ const Location = () => { return (
- + {'location'}/

LOCKEY Lippo Mall Kemang

diff --git a/components/Transaction/index.js b/components/Transaction/index.js index f2fdb79..c78182d 100644 --- a/components/Transaction/index.js +++ b/components/Transaction/index.js @@ -44,11 +44,11 @@ const Transaction = ({show, orderData, location}) => {
{orderData?.payment_method?.toLowerCase() == "gopay" ? (
- + {'gopay'}
) : (
- + {'gopay'}
)}
diff --git a/pages/[qrCode]/order/index.js b/pages/[qrCode]/order/index.js index 5703737..f532117 100644 --- a/pages/[qrCode]/order/index.js +++ b/pages/[qrCode]/order/index.js @@ -40,17 +40,17 @@ const FlashScreen = observer(() => { return ( <>
- + {'logo
Only pay with - + {'gopay'}
- + {'bg
- + {'bg
) diff --git a/pages/[qrCode]/payment-order/index.js b/pages/[qrCode]/payment-order/index.js index a12c972..485dec6 100644 --- a/pages/[qrCode]/payment-order/index.js +++ b/pages/[qrCode]/payment-order/index.js @@ -76,7 +76,7 @@ const Payment = observer(() => { type={'number'} className={'rounded-lg'} size={'large'} - suffix={} + suffix={{'icon} placeholder={'08xxxxxxxxx'} disabled={ notOrder === true diff --git a/pages/policy-terms/index.js b/pages/policy-terms/index.js index 4c9461a..5ad3cca 100644 --- a/pages/policy-terms/index.js +++ b/pages/policy-terms/index.js @@ -62,8 +62,8 @@ const PolicyTerms = observer(() => {

Ketentuan Umum

, general_requirements.map((value,index) => (
-

{value?.key}.

-

{value?.value}

+

{value?.key}.

+

{value?.value}

)) ], @@ -80,12 +80,15 @@ const PolicyTerms = observer(() => { {'arrow
+ preview={false} + alt={'logo cariparkir'} + />
diff --git a/pages/success-payment/index.js b/pages/success-payment/index.js index 573147b..e11cec0 100644 --- a/pages/success-payment/index.js +++ b/pages/success-payment/index.js @@ -15,12 +15,15 @@ const SuccessPayment = () => { {'arrow
+ preview={false} + alt={'icon cari parkir'} + />
@@ -42,7 +45,7 @@ const SuccessPayment = () => {
Waktu Kedatangan
- + {'clock'} Pukul 13:33 - 14:33
@@ -50,7 +53,7 @@ const SuccessPayment = () => {
Total Biaya Parkir
- + {'money Rp 99.000