mudanca o botao Tempo no hear fica Mais
This commit is contained in:
@@ -52,7 +52,7 @@ export function PortalGroupedMenu() {
|
|||||||
legacyContentEnabled?: boolean;
|
legacyContentEnabled?: boolean;
|
||||||
profileAccess?: ProfileAccess | null;
|
profileAccess?: ProfileAccess | null;
|
||||||
opportunityManagement?: OpportunityManagementAccess | null;
|
opportunityManagement?: OpportunityManagementAccess | null;
|
||||||
scopedAdministration?: {label:string;href:string}[];
|
scopedAdministration?: { label: string; href: string }[];
|
||||||
}>();
|
}>();
|
||||||
const { t, language, requestCount } = useTempoUi();
|
const { t, language, requestCount } = useTempoUi();
|
||||||
const mobile = useIsMobile();
|
const mobile = useIsMobile();
|
||||||
@@ -71,7 +71,16 @@ export function PortalGroupedMenu() {
|
|||||||
opportunityManagement: props.opportunityManagement,
|
opportunityManagement: props.opportunityManagement,
|
||||||
profileAccess: props.profileAccess,
|
profileAccess: props.profileAccess,
|
||||||
});
|
});
|
||||||
if (props.scopedAdministration?.length) groups.push({id:'scoped-administration',label:'Administração',children:props.scopedAdministration.map((item,index)=>({id:`scoped-${index}`,label:item.label,href:item.href}))});
|
if (props.scopedAdministration?.length)
|
||||||
|
groups.push({
|
||||||
|
id: 'scoped-administration',
|
||||||
|
label: 'Administração',
|
||||||
|
children: props.scopedAdministration.map((item, index) => ({
|
||||||
|
id: `scoped-${index}`,
|
||||||
|
label: item.label,
|
||||||
|
href: item.href,
|
||||||
|
})),
|
||||||
|
});
|
||||||
const current = currentNavigationGroup(groups, url);
|
const current = currentNavigationGroup(groups, url);
|
||||||
const currentItem = currentNavigationItem(groups, url);
|
const currentItem = currentNavigationItem(groups, url);
|
||||||
const [loggingOut, setLoggingOut] = useState(false);
|
const [loggingOut, setLoggingOut] = useState(false);
|
||||||
@@ -247,7 +256,7 @@ export function PortalGroupedMenu() {
|
|||||||
institutionalCurrent || undefined
|
institutionalCurrent || undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Tempo
|
Mais
|
||||||
<ChevronDown size={14} aria-hidden="true" />
|
<ChevronDown size={14} aria-hidden="true" />
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent
|
||||||
|
|||||||
Reference in New Issue
Block a user