@@ -1,6 +1,6 @@
|
||||
import { Link } from "@inertiajs/react";
|
||||
import { cloneElement, isValidElement, useId, type ReactNode } from "react";
|
||||
import { Layout } from "../portfolio/shared";
|
||||
import { Link } from '@inertiajs/react';
|
||||
import { cloneElement, isValidElement, useId, type ReactNode } from 'react';
|
||||
import { Layout } from '../portfolio/shared';
|
||||
|
||||
export type Option = { id: string | number; name: string };
|
||||
export type Territory = {
|
||||
@@ -79,32 +79,32 @@ export type Interest = {
|
||||
room_id: number | null;
|
||||
};
|
||||
export const labels: Record<string, string> = {
|
||||
draft: "Rascunho",
|
||||
pending: "Submetida — legado",
|
||||
submitted: "Submetida",
|
||||
returned: "Devolvida",
|
||||
rejected: "Rejeitada",
|
||||
published: "Publicada",
|
||||
suspended: "Suspensa",
|
||||
archived: "Arquivada",
|
||||
withdrawn: "Retirada",
|
||||
clarification: "Em esclarecimento",
|
||||
shortlisted: "Lista curta",
|
||||
negotiation: "Em negociação",
|
||||
agreement_recorded: "Acordo registado",
|
||||
agreed: "Confirmado pelas partes",
|
||||
execution: "Em execução",
|
||||
closed: "Concluída",
|
||||
cancelled: "Cancelada",
|
||||
progress: "Em curso",
|
||||
completed: "Concluído",
|
||||
met: "Comprovadamente cumprido",
|
||||
unmet: "Comprovadamente incumprido",
|
||||
unknown: "Informação insuficiente",
|
||||
draft: 'Rascunho',
|
||||
pending: 'Submetida — legado',
|
||||
submitted: 'Submetida',
|
||||
returned: 'Devolvida',
|
||||
rejected: 'Rejeitada',
|
||||
published: 'Publicada',
|
||||
suspended: 'Suspensa',
|
||||
archived: 'Arquivada',
|
||||
withdrawn: 'Retirada',
|
||||
clarification: 'Em esclarecimento',
|
||||
shortlisted: 'Lista curta',
|
||||
negotiation: 'Em negociação',
|
||||
agreement_recorded: 'Acordo registado',
|
||||
agreed: 'Confirmado pelas partes',
|
||||
execution: 'Em execução',
|
||||
closed: 'Concluída',
|
||||
cancelled: 'Cancelada',
|
||||
progress: 'Em curso',
|
||||
completed: 'Concluído',
|
||||
met: 'Comprovadamente cumprido',
|
||||
unmet: 'Comprovadamente incumprido',
|
||||
unknown: 'Informação insuficiente',
|
||||
};
|
||||
export const control = "w-full rounded border bg-background p-2";
|
||||
export const control = 'w-full rounded border bg-background p-2';
|
||||
export const button =
|
||||
"inline-flex rounded bg-emerald-800 px-4 py-2 text-white disabled:opacity-50";
|
||||
'inline-flex rounded bg-emerald-800 px-4 py-2 text-white disabled:opacity-50';
|
||||
export function Frame({
|
||||
title,
|
||||
children,
|
||||
@@ -151,8 +151,8 @@ export function Field({
|
||||
<span id={id} className="font-medium">
|
||||
{label}
|
||||
</span>
|
||||
{isValidElement<{ "aria-labelledby"?: string }>(children)
|
||||
? cloneElement(children, { "aria-labelledby": id })
|
||||
{isValidElement<{ 'aria-labelledby'?: string }>(children)
|
||||
? cloneElement(children, { 'aria-labelledby': id })
|
||||
: children}
|
||||
</label>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user