feat: implement public order details page with submission view, order actions, and sidebar branding updates
This commit is contained in:
@@ -31,7 +31,9 @@ export default function LoginPage() {
|
||||
|
||||
const res = await loginUser(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 login')
|
||||
setLoading(false)
|
||||
@@ -142,9 +144,19 @@ export default function LoginPage() {
|
||||
|
||||
<p className="text-center text-sm text-slate-500 mt-8">
|
||||
Belum punya akun?{' '}
|
||||
<Link href="/register" className="font-bold text-[#1B2CC1] hover:underline">
|
||||
<button
|
||||
onClick={() => {
|
||||
const search = window.location.search
|
||||
router.push(`/register${search}`)
|
||||
}}
|
||||
className="font-bold text-[#1B2CC1] hover:underline cursor-pointer"
|
||||
>
|
||||
Daftar di sini
|
||||
</Link>
|
||||
</button>
|
||||
</p>
|
||||
|
||||
<p className="text-center text-xs text-slate-400 mt-12 font-medium">
|
||||
© {new Date().getFullYear()} TitipIn - Sistem Titip Pesanan by firmanramdhani
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user