diff --git a/app/(protected)/hse/incidents/[id]/capa/new/page.tsx b/app/(protected)/hse/incidents/[id]/capa/new/page.tsx index a34f648..4b73244 100644 --- a/app/(protected)/hse/incidents/[id]/capa/new/page.tsx +++ b/app/(protected)/hse/incidents/[id]/capa/new/page.tsx @@ -1,5 +1,6 @@ import { notFound, redirect } from 'next/navigation' import Link from 'next/link' +import { ArrowLeft } from 'lucide-react' import { asAdmin } from '@/lib/db/with-user' import { getSession } from '@/lib/auth/get-session' import { incidents } from '@/lib/db/schema' @@ -30,15 +31,18 @@ export default async function NewCapaPage({ params }: Props) { if (!incident) notFound() return ( -
- - ← Back to incident +
+ + + Back to incident -

Add CAPA Action

-

- {incident.referenceNo ?? id} -

- -
+
+

Add CAPA action

+

{incident.referenceNo ?? id}

+
+
+ +
+ ) } diff --git a/components/capa/capa-form.tsx b/components/capa/capa-form.tsx index 7bf461c..c6e6f96 100644 --- a/components/capa/capa-form.tsx +++ b/components/capa/capa-form.tsx @@ -2,6 +2,8 @@ import { useState, useEffect } from 'react' import { useRouter } from 'next/navigation' +import { Button } from '@/components/ui/button' +import { Field, Input, Select, Textarea } from '@/components/ui/field' interface User { id: string @@ -71,59 +73,62 @@ export function CapaForm({ incidentId }: Props) { return (
-
- -