feat(capa): proof form for owners and photo gallery for HSE

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 11:12:22 +08:00
co-authored by Claude Sonnet 5.5
parent de7fb298f7
commit 550a61cedc
4 changed files with 156 additions and 8 deletions
+2 -5
View File
@@ -3,6 +3,7 @@
import { useState } from 'react'
import { useRouter } from 'next/navigation'
import { Button } from '@/components/ui/button'
import { SubmitVerificationForm } from '@/components/capa/submit-verification-form'
interface Props {
capaId: string
@@ -41,11 +42,7 @@ export function CapaOwnerActions({ capaId, currentStatus }: Props) {
}
if (currentStatus === 'in_progress') {
return (
<Button onClick={() => updateStatus('pending_verification')} disabled={loading}>
{loading ? '…' : 'Submit for Verification'}
</Button>
)
return <SubmitVerificationForm capaId={capaId} />
}
return null