Update Layout.tsx
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { NavLink, Outlet } from 'react-router-dom';
|
import { NavLink, Outlet } from 'react-router-dom';
|
||||||
import { Users, Settings, Building, LogOut, Menu, X, ChevronDown, Check, LayoutDashboard, Megaphone, Info, AlertTriangle, Hammer, Calendar, MessageSquareWarning, PieChart, Briefcase, ReceiptEuro } from 'lucide-react';
|
import { Users, Settings, Building, LogOut, Menu, X, ChevronDown, Check, LayoutDashboard, Megaphone, Info, AlertTriangle, Hammer, Calendar, MessageSquareWarning, PieChart, Briefcase, ReceiptEuro, FileText } from 'lucide-react';
|
||||||
import { CondoService } from '../services/mockDb';
|
import { CondoService } from '../services/mockDb';
|
||||||
import { Condo, Notice, AppSettings } from '../types';
|
import { Condo, Notice, AppSettings } from '../types';
|
||||||
|
|
||||||
@@ -299,6 +299,14 @@ export const Layout: React.FC = () => {
|
|||||||
<span className="font-medium">{isPrivileged ? 'Famiglie' : 'La mia famiglia'}</span>
|
<span className="font-medium">{isPrivileged ? 'Famiglie' : 'La mia famiglia'}</span>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
|
||||||
|
{/* Documents Link - NEW */}
|
||||||
|
{(settings?.features.documents) && (
|
||||||
|
<NavLink to="/documents" className={navClass} onClick={closeMenu}>
|
||||||
|
<FileText className="w-5 h-5" />
|
||||||
|
<span className="font-medium">Documenti</span>
|
||||||
|
</NavLink>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Condo Financials - Admin/PowerUser or Enabled User */}
|
{/* Condo Financials - Admin/PowerUser or Enabled User */}
|
||||||
{(isPrivileged || settings?.features.condoFinancialsView) && (
|
{(isPrivileged || settings?.features.condoFinancialsView) && (
|
||||||
<NavLink to="/financials" className={navClass} onClick={closeMenu}>
|
<NavLink to="/financials" className={navClass} onClick={closeMenu}>
|
||||||
|
|||||||
Reference in New Issue
Block a user