diff --git a/.env b/.env index 7ef613b..5f1b4b0 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ # NEXT_PUBLIC_BASE_URL=https://api-staging.cariparkir.co.id -NEXT_PUBLIC_BASE_URL=https://d2cc-101-255-119-166.ap.ngrok.io \ No newline at end of file +NEXT_PUBLIC_BASE_URL=http://localhost:8008 \ No newline at end of file diff --git a/pages/[qrCode]/payment-order/index.js b/pages/[qrCode]/payment-order/index.js index 2d3713c..6863a40 100644 --- a/pages/[qrCode]/payment-order/index.js +++ b/pages/[qrCode]/payment-order/index.js @@ -7,7 +7,7 @@ import Ask from "../../../components/Ask"; import Location from "../../../components/Location"; import DownloadApps from "../../../components/DownloadApps"; import Sheet from 'react-modal-sheet'; -import Countdown from "react-countdown"; +import Countdown, { zeroPad } from "react-countdown"; import {useRouter} from "next/router"; import BottomSheet from "../../../components/BottomSheet"; import { botsRepository } from '../../../repository/bots'; @@ -38,7 +38,7 @@ const Payment = observer(() => { if (completed) { // router.push('/flash-screen'); } else { - return {minutes}:{seconds}; + return {zeroPad(minutes)}:{zeroPad(seconds)}; } }; @@ -72,11 +72,11 @@ const Payment = observer(() => { <> {isNotComplete ? (