@@ -36,13 +36,16 @@ export const kind = (
|
||||
export function Layout({
|
||||
title,
|
||||
children,
|
||||
mainLandmark = true,
|
||||
}: {
|
||||
title: string;
|
||||
children: ReactNode;
|
||||
mainLandmark?: boolean;
|
||||
}) {
|
||||
const { flash } = usePage<{ flash?: { success?: string } }>().props;
|
||||
const Container = mainLandmark ? 'main' : 'div';
|
||||
return (
|
||||
<main className="mx-auto w-full max-w-6xl min-w-0 space-y-6 p-4 break-words md:p-8">
|
||||
<Container className="mx-auto w-full max-w-6xl min-w-0 space-y-6 p-4 break-words md:p-8">
|
||||
<Head title={title} />
|
||||
<nav
|
||||
className="flex flex-wrap gap-5 text-sm underline"
|
||||
@@ -61,6 +64,6 @@ export function Layout({
|
||||
</p>
|
||||
)}
|
||||
{children}
|
||||
</main>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -90,6 +90,8 @@ function JourneyCard({
|
||||
<CountrySelect
|
||||
countries={countries}
|
||||
value={form.data.country}
|
||||
label="País do requerente"
|
||||
error={form.errors.country}
|
||||
onChange={(value) => form.setData('country', value)}
|
||||
required
|
||||
allowLegacyValue
|
||||
@@ -99,6 +101,8 @@ function JourneyCard({
|
||||
<CountrySelect
|
||||
countries={countries}
|
||||
value={form.data.declared_origin_country_code}
|
||||
label="País de origem declarado desta solicitação"
|
||||
error={form.errors.declared_origin_country_code}
|
||||
onChange={(value) =>
|
||||
form.setData(
|
||||
'declared_origin_country_code',
|
||||
|
||||
Reference in New Issue
Block a user