fix(portal): identify operator and institutional support contact

This commit is contained in:
2026-11-10 10:41:47 +02:00
parent 377c40a21a
commit 4e61480272
4 changed files with 76 additions and 6 deletions
+5 -1
View File
@@ -10,8 +10,9 @@ const navigation = [
export function TempoFooter() {
const { t, language } = useTempoUi();
const { portalInstitutionalContactEmail } = usePage<{
const { portalInstitutionalContactEmail, portalOperator } = usePage<{
portalInstitutionalContactEmail?: string | null;
portalOperator?: string | null;
}>().props;
return (
<footer
@@ -27,6 +28,9 @@ export function TempoFooter() {
>
<PortalProductIdentity />
</Link>
<p className="text-sm text-slate-300">
{t('Operado por')} {portalOperator || 'Tempo, Lda.'}
</p>
<div className="flex items-start gap-4">
<MapPin
className="mt-1 size-[22px] shrink-0 text-[#ed1c24]"
+17 -4
View File
@@ -432,9 +432,10 @@ function Simulator() {
}
export default function Services(p: Props) {
const { flash, auth } = usePage<{
const { flash, auth, portalInstitutionalContactEmail } = usePage<{
flash?: { success?: string };
auth: { user: unknown };
portalInstitutionalContactEmail?: string | null;
}>().props;
const currentUrl = usePage<{ url: string }>().url;
const filter = useForm({
@@ -1053,6 +1054,19 @@ export default function Services(p: Props) {
<>
<section className="space-y-3">
<h2 className="text-xl font-bold">Contactos</h2>
{portalInstitutionalContactEmail &&
portalInstitutionalContactEmail !==
p.contacts?.email && (
<p>
Contacto institucional:{' '}
<a
className="underline"
href={`mailto:${portalInstitutionalContactEmail}`}
>
{portalInstitutionalContactEmail}
</a>
</p>
)}
{p.contacts?.email && (
<p>
Email:{' '}
@@ -1073,9 +1087,8 @@ export default function Services(p: Props) {
)}
{!p.contacts?.email && !p.contacts?.phone && (
<p>
Utilize o formulário para contactar a
equipa. Os contactos directos ainda não
estão publicados.
Para pedidos de apoio ao investimento,
utilize o formulário desta página.
</p>
)}
</section>