Receber documentos privados e locais de disponibilidade nas candidaturas
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import { Head, Link, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
CandidateDocumentList,
|
||||
type ReceivedDocument,
|
||||
} from '@/components/candidate-documents';
|
||||
import {
|
||||
CandidateAvailability,
|
||||
type AvailabilityLocation,
|
||||
} from '@/components/candidate-availability';
|
||||
import { FormErrors, PageTitle, controlClass } from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
@@ -122,6 +130,7 @@ export default function Submissions({
|
||||
reference: string;
|
||||
received_at: string;
|
||||
snapshot: {
|
||||
documents?: Record<string, ReceivedDocument> | [];
|
||||
opportunity: {
|
||||
form: {
|
||||
definition: {
|
||||
@@ -129,7 +138,14 @@ export default function Submissions({
|
||||
};
|
||||
};
|
||||
};
|
||||
profile: { data: { name: string; summary: string } };
|
||||
profile: {
|
||||
data: {
|
||||
name: string;
|
||||
summary: string;
|
||||
availability?: AvailabilityLocation;
|
||||
additional_availability?: AvailabilityLocation[];
|
||||
};
|
||||
};
|
||||
answers: Record<string, unknown>;
|
||||
};
|
||||
}[];
|
||||
@@ -234,6 +250,13 @@ export default function Submissions({
|
||||
: 'Recebida, por triar'}
|
||||
</p>
|
||||
<p>{row.snapshot.profile.data.summary}</p>
|
||||
<CandidateDocumentList
|
||||
documents={row.snapshot.documents}
|
||||
baseUrl={`/pessoas/${process.id}/recebidas/${row.id}`}
|
||||
/>
|
||||
<CandidateAvailability
|
||||
data={row.snapshot.profile.data}
|
||||
/>
|
||||
<dl>
|
||||
{Object.entries(row.snapshot.answers).map(
|
||||
([key, value]) => (
|
||||
|
||||
Reference in New Issue
Block a user