oportunidades 5
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-10 14:15:28 +02:00
parent 6ddafc95ba
commit 01405cbf8a
144 changed files with 28903 additions and 1103 deletions
+6 -3
View File
@@ -1,3 +1,4 @@
import ProfileNavigation from '@/components/profile-navigation';
import { Head, Link, usePage } from '@inertiajs/react';
import type { ReactNode } from 'react';
import { cloneElement, isValidElement, useId } from 'react';
@@ -46,7 +47,9 @@ export function Management({
title: string;
children: ReactNode;
}) {
const { flash, educationEnabled, aiEnabled } = usePage<{
const { flash, educationEnabled, aiEnabled, auth, basePath } = usePage<{
auth?: {canManagePortal?: boolean};
basePath?: string;
flash?: { success?: string };
educationEnabled?: boolean;
aiEnabled?: boolean;
@@ -54,7 +57,7 @@ export function Management({
return (
<main className="space-y-6 p-4 md:p-8">
<Head title={title} />
<nav
{auth?.canManagePortal && basePath !== '/minhas-oportunidades' ? <nav
className="flex flex-wrap gap-4 text-sm underline"
aria-label="Gestão do portal"
>
@@ -102,7 +105,7 @@ export function Management({
Referências e formulários
</Link>
<a href="/">Portal público</a>
</nav>
</nav> : <ProfileNavigation />}
<h1 className="text-2xl font-semibold break-words">{title}</h1>
{flash?.success && (
<p