fix: hidden arrow input,change wording and disable preview image
This commit is contained in:
parent
7e5f71d345
commit
0838235f89
2
.env
2
.env
|
@ -1,2 +1,2 @@
|
||||||
# NEXT_PUBLIC_BASE_URL=https://api-staging.cariparkir.co.id
|
# NEXT_PUBLIC_BASE_URL=https://api-staging.cariparkir.co.id
|
||||||
NEXT_PUBLIC_BASE_URL=http://localhost:8008
|
NEXT_PUBLIC_BASE_URL=https://42d6-101-255-119-166.ap.ngrok.io
|
|
@ -28,6 +28,10 @@ const FlashScreen = observer(() => {
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
router.push(`/${qrCode}/payment-order/`)
|
router.push(`/${qrCode}/payment-order/`)
|
||||||
|
localStorage.setItem("idOrder", res?.data?.id)
|
||||||
|
localStorage.setItem("checkInTime", res?.data?.check_in_time)
|
||||||
|
localStorage.setItem("validTime", res?.data?.valid_time)
|
||||||
|
console.log(res, "data order")
|
||||||
})
|
})
|
||||||
} else if (isNotAvailable) {
|
} else if (isNotAvailable) {
|
||||||
localStorage.setItem("lockey_id", isNotAvailable?.id)
|
localStorage.setItem("lockey_id", isNotAvailable?.id)
|
||||||
|
|
|
@ -72,11 +72,11 @@ const Payment = observer(() => {
|
||||||
<>
|
<>
|
||||||
{isNotComplete ? (
|
{isNotComplete ? (
|
||||||
<div className="flex items-center justify-center bg-[#FF4F34] h-10 text-base">
|
<div className="flex items-center justify-center bg-[#FF4F34] h-10 text-base">
|
||||||
<span className={'text-white'}>Selesaikan Pesananmu Dalam</span>
|
<span className={'text-white'}>Batas Penyelesaian pesanan Anda Habis</span>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex items-center justify-center bg-[#00AED6] h-10 text-base">
|
<div className="flex items-center justify-center bg-[#00AED6] h-10 text-base">
|
||||||
<span className={'text-white'}>Batas Penyelesaian Pesanan mu Habis<Countdown
|
<span className={'text-white'}>selesaikan pesananmu dalam <Countdown
|
||||||
date={Date.now() + 300000}
|
date={Date.now() + 300000}
|
||||||
renderer={renderer}
|
renderer={renderer}
|
||||||
onComplete={() => {
|
onComplete={() => {
|
||||||
|
@ -104,7 +104,7 @@ const Payment = observer(() => {
|
||||||
type={'number'}
|
type={'number'}
|
||||||
className={'rounded-lg'}
|
className={'rounded-lg'}
|
||||||
size={'large'}
|
size={'large'}
|
||||||
suffix={<Image src={'/assets/icons/gopay.svg'} width={80} height={30} alt={'icon gopay'} />}
|
suffix={<Image src={'/assets/icons/gopay.svg'} width={80} height={30} preview={false} alt={'icon gopay'} />}
|
||||||
placeholder={'08xxxxxxxxx'}
|
placeholder={'08xxxxxxxxx'}
|
||||||
disabled={
|
disabled={
|
||||||
notOrder === true
|
notOrder === true
|
||||||
|
@ -195,7 +195,7 @@ const Payment = observer(() => {
|
||||||
<div className={'px-5 max-w-lg'}>
|
<div className={'px-5 max-w-lg'}>
|
||||||
<div className={'flex justify-center'}>
|
<div className={'flex justify-center'}>
|
||||||
<Image src={'/assets/images/Illustration-order-out.svg'} width={200} height={200}
|
<Image src={'/assets/images/Illustration-order-out.svg'} width={200} height={200}
|
||||||
alt={'confirmation'}/>
|
alt={'confirmation'} preview={false} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 className={'text-lg font-bold'}>Ingin pesan kembali?</h3>
|
<h3 className={'text-lg font-bold'}>Ingin pesan kembali?</h3>
|
||||||
|
|
|
@ -19,3 +19,13 @@ body {
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input::-webkit-outer-spin-button,
|
||||||
|
input::-webkit-inner-spin-button {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=number]{
|
||||||
|
-moz-appearance: textfield;
|
||||||
|
}
|
11
yarn.lock
11
yarn.lock
|
@ -295,14 +295,9 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
"glob" "7.1.7"
|
"glob" "7.1.7"
|
||||||
|
|
||||||
"@next/swc-linux-x64-gnu@12.2.2":
|
"@next/swc-win32-x64-msvc@12.2.2":
|
||||||
"integrity" "sha512-ir1vNadlUDj7eQk15AvfhG5BjVizuCHks9uZwBfUgT5jyeDCeRvaDCo1+Q6+0CLOAnYDR/nqSCvBgzG2UdFh9A=="
|
"integrity" "sha512-2D2iinWUL6xx8D9LYVZ5qi7FP6uLAoWymt8m8aaG2Ld/Ka8/k723fJfiklfuAcwOxfufPJI+nRbT5VcgHGzHAQ=="
|
||||||
"resolved" "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.2.2.tgz"
|
"resolved" "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.2.tgz"
|
||||||
"version" "12.2.2"
|
|
||||||
|
|
||||||
"@next/swc-linux-x64-musl@12.2.2":
|
|
||||||
"integrity" "sha512-bte5n2GzLN3O8JdSFYWZzMgEgDHZmRz5wiispiiDssj4ik3l8E7wq/czNi8RmIF+ioj2sYVokUNa/ekLzrESWw=="
|
|
||||||
"resolved" "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.2.2.tgz"
|
|
||||||
"version" "12.2.2"
|
"version" "12.2.2"
|
||||||
|
|
||||||
"@nodelib/fs.scandir@2.1.5":
|
"@nodelib/fs.scandir@2.1.5":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user