diff --git a/src/app/router.tsx b/src/app/router.tsx
index 4dd5a2a..5cc3e8a 100644
--- a/src/app/router.tsx
+++ b/src/app/router.tsx
@@ -1,10 +1,11 @@
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import { AppLayout } from './AppLayout'
-import { CheckoutPage } from '../pages/CheckoutPage'
+// import { CheckoutPage } from '../pages/CheckoutPage'
import { PaymentStatusPage } from '../pages/PaymentStatusPage'
import { PaymentHistoryPage } from '../pages/PaymentHistoryPage'
import { NotFoundPage } from '../pages/NotFoundPage'
-import { DemoStorePage } from '../pages/DemoStorePage'
+// import { DemoStorePage } from '../pages/DemoStorePage'
+import { InitPage } from '../pages/InitialPage'
import { PayPage } from '../pages/PayPage'
const router = createBrowserRouter([
@@ -13,8 +14,8 @@ const router = createBrowserRouter([
element: ,
errorElement:
Terjadi kesalahan. Coba muat ulang.
,
children: [
- { index: true, element:
{
const html = document.documentElement
try {
@@ -9,11 +9,9 @@ import './styles/globals.css'
html.classList.remove('dark')
}
document.body.classList.remove('dark')
- // Hint browsers to prefer light color scheme
html.style.colorScheme = 'light'
html.setAttribute('data-theme', 'light')
} catch {
- // noop
}
})()
import { AppRouter } from './app/router'
diff --git a/src/pages/InitialPage.tsx b/src/pages/InitialPage.tsx
new file mode 100644
index 0000000..feb4db1
--- /dev/null
+++ b/src/pages/InitialPage.tsx
@@ -0,0 +1,13 @@
+export function InitPage() {
+ return (
+
+
+
+
+
Simaya Midtrans
+
Payment Service
+
+
+
+ )
+}
diff --git a/src/pages/NotFoundPage.tsx b/src/pages/NotFoundPage.tsx
index 8f82e65..2a4f80c 100644
--- a/src/pages/NotFoundPage.tsx
+++ b/src/pages/NotFoundPage.tsx
@@ -5,7 +5,8 @@ export function NotFoundPage() {
Halaman tidak ditemukan
Periksa URL atau kembali ke checkout.
-
Kembali ke Checkout
+ {/*
Kembali ke Checkout */}
+
Kembali
)
}
\ No newline at end of file
diff --git a/src/pages/PayPage.tsx b/src/pages/PayPage.tsx
index 77a2574..c941c7e 100644
--- a/src/pages/PayPage.tsx
+++ b/src/pages/PayPage.tsx
@@ -53,7 +53,7 @@ export function PayPage() {
}
}, [token])
- const merchantName = useMemo(() => 'Simaya Retail', [])
+ const merchantName = useMemo(() => '', [])
const isExpired = expireAt ? Date.now() > expireAt : false
const enabledMap: Record
= useMemo(() => {
@@ -88,16 +88,17 @@ export function PayPage() {
>
{msg}
-
+
{ try { window.location.reload() } catch { } }}
+ className="w-full sm:w-auto"
>
Muat ulang
Hubungi Admin
@@ -123,7 +124,6 @@ export function PayPage() {
onSelect={(m) => {
setSelectedMethod(m as Method)
if (m === 'bank_transfer' || m === 'cstore') {
- // Panel pemilihan bank/toko akan muncul di bawah item, dan lanjut ke step 3 setelah memilih
} else if (m === 'cpay') {
try {
window.open('https://play.google.com/store/apps/details?id=com.cifo.walanja', '_blank')
@@ -148,7 +148,7 @@ export function PayPage() {
return (
Pilih bank untuk membuat Virtual Account
-
+
{(['bca', 'bni', 'bri', 'cimb', 'mandiri', 'permata'] as BankKey[]).map((bk) => (
{ setCurrentStep(3); setIsBusy(false) }, 300)
}}
- className="rounded border border-gray-300 bg-white p-2 flex items-center justify-center overflow-hidden hover:bg-gray-100"
+ className="rounded border border-gray-300 bg-white p-3 md:p-2 w-full flex items-center justify-center overflow-hidden hover:bg-gray-100"
aria-label={`Pilih bank ${bk.toUpperCase()}`}
>
@@ -179,7 +179,8 @@ export function PayPage() {
Pilih toko untuk membuat kode pembayaran
- {(['alfamart', 'indomaret'] as const).map((st) => (
+ {/* {(['alfamart', 'indomaret'] as const).map((st) => ( */}
+ {(['alfamart'] as const).map((st) => (
{ setCurrentStep(3); setIsBusy(false) }, 300)
}}
- className="rounded border border-gray-300 bg-white p-2 flex items-center justify-center hover:bg-gray-100"
+ className="rounded border border-gray-300 bg-white p-3 md:p-2 w-full flex items-center justify-center hover:bg-gray-100"
aria-label={`Pilih toko ${st.toUpperCase()}`}
>
{st === 'alfamart' ? : }
diff --git a/src/pages/PaymentStatusPage.tsx b/src/pages/PaymentStatusPage.tsx
index 4c56abe..a05d08a 100644
--- a/src/pages/PaymentStatusPage.tsx
+++ b/src/pages/PaymentStatusPage.tsx
@@ -112,7 +112,7 @@ export function PaymentStatusPage() {
) : null}
nav.toHistory()}>Lihat Riwayat
- nav.toCheckout()}>Kembali ke Checkout
+ nav.toCheckout()}>Kembali
{!Env.API_BASE_URL && (
diff --git a/src/services/api.ts b/src/services/api.ts
index f523409..9b24ca1 100644
--- a/src/services/api.ts
+++ b/src/services/api.ts
@@ -129,8 +129,6 @@ export async function getPaymentLinkPayload(token: string): Promise