feat: implement public order details page with submission view, order actions, and sidebar branding updates

This commit is contained in:
Firman Ramdhani
2026-09-03 14:54:33 +07:00
parent d32e7eda91
commit ff57d52dde
11 changed files with 643 additions and 288 deletions
+15 -3
View File
@@ -46,7 +46,9 @@ export default function RegisterPage() {
const res = await registerUser(name, username, password)
if (res.success) {
window.location.href = '/' // Force hard reload to update context/middleware
const params = new URLSearchParams(window.location.search)
const callbackUrl = params.get('callbackUrl') || '/'
window.location.href = callbackUrl // Force hard reload to update context/middleware
} else {
setError(res.error || 'Gagal mendaftar')
setLoading(false)
@@ -190,9 +192,19 @@ export default function RegisterPage() {
<p className="text-center text-sm text-slate-500 mt-8">
Sudah punya akun?{' '}
<Link href="/login" className="font-bold text-[#1B2CC1] hover:underline">
<button
onClick={() => {
const search = window.location.search
router.push(`/login${search}`)
}}
className="font-bold text-[#1B2CC1] hover:underline cursor-pointer"
>
Masuk di sini
</Link>
</button>
</p>
<p className="text-center text-xs text-slate-400 mt-12 font-medium">
&copy; {new Date().getFullYear()} TitipIn - Sistem Titip Pesanan by firmanramdhani
</p>
</div>
</div>