Skip to content

Commit b24db66

Browse files
committed
fix: แก้ path detail ของ list view
1 parent 35547ae commit b24db66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/my-app/src/app/components/Cameras/CameraTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export default function CameraTable({
338338

339339
<button
340340
type="button"
341-
onClick={() => (onDetails ? onDetails(c.id) : router.push(`/cameras/${c.id}?tab=details`))}
341+
onClick={() => (onDetails ? onDetails(c.id) : router.push(`/cameras/${c.id}/details`))}
342342
title="Details"
343343
aria-label="Details"
344344
className="inline-flex items-center justify-center gap-2 px-3 py-1 rounded-sm bg-white border border-[var(--color-primary)] text-[var(--color-primary)] hover:bg-[var(--color-primary)] hover:border-[var(--color-primary)] hover:text-white transition focus:outline-none focus:ring-2 focus:ring-offset-2"

0 commit comments

Comments
 (0)