feat(offers): complete phase five operational controls in QA
This commit is contained in:
@@ -15,6 +15,7 @@ import OfferParticularsFields, {
|
||||
} from '@/components/offer-particulars';
|
||||
import OfferPrivateResources from '@/components/offer-private-resources';
|
||||
import OfferConfidentialAccess from '@/components/offer-confidential-access';
|
||||
import OfferOperations from '@/components/offer-operations';
|
||||
|
||||
type Offer = OfferParticulars & {
|
||||
price_mode?: string | null;
|
||||
@@ -196,6 +197,23 @@ export default function OfferPreparation({
|
||||
<div role="status" aria-live="polite">
|
||||
{message}
|
||||
</div>
|
||||
{saved && (
|
||||
<OfferOperations
|
||||
id={saved.id}
|
||||
onChanged={() => {
|
||||
void profileJson(
|
||||
`/minhas-oportunidades/ofertas/${saved.id}`,
|
||||
{},
|
||||
'GET',
|
||||
)
|
||||
.then((result) => {
|
||||
setSaved(result.record);
|
||||
setConfirmed(false);
|
||||
})
|
||||
.catch((error) => setMessage(error.message));
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{Object.keys(errors).length > 0 && (
|
||||
<div
|
||||
role="alert"
|
||||
|
||||
Reference in New Issue
Block a user