Merge pull request #8 from starkSV/feat/cf-worker-proxy

fix(frontend): fix TypeScript error in Back button navigate call
This commit is contained in:
Shekhar 2026-05-18 12:12:28 +05:30 committed by GitHub
commit 2e2f9c5c48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,7 +213,7 @@ export default function ProductDetailPage() {
<div className="max-w-xl mx-auto px-5 pt-12 pb-10">
{/* Back */}
<button
onClick={() => navigate(window.history.state?.idx ? -1 : '/')}
onClick={() => window.history.state?.idx ? navigate(-1) : navigate('/')}
className="flex items-center gap-1.5 text-sm text-zinc-500 hover:text-zinc-300 mb-8 transition-colors"
>
<ArrowLeft size={15} />