Update Layout.tsx
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
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 } from 'lucide-react';
|
||||
import { Users, Settings, Building, LogOut, Menu, X, ChevronDown, Check, LayoutDashboard, Megaphone, Info, AlertTriangle, Hammer, Calendar, MessageSquareWarning, PieChart, Briefcase, ReceiptEuro } from 'lucide-react';
|
||||
import { CondoService } from '../services/mockDb';
|
||||
import { Condo, Notice, AppSettings } from '../types';
|
||||
|
||||
@@ -301,6 +301,14 @@ export const Layout: React.FC = () => {
|
||||
<span className="font-medium">Famiglie</span>
|
||||
</NavLink>
|
||||
|
||||
{/* Condo Financials - Admin or Enabled User */}
|
||||
{(isAdmin || settings?.features.condoFinancialsView) && (
|
||||
<NavLink to="/financials" className={navClass} onClick={closeMenu}>
|
||||
<ReceiptEuro className="w-5 h-5" />
|
||||
<span className="font-medium">Spese Condominio</span>
|
||||
</NavLink>
|
||||
)}
|
||||
|
||||
{/* New Extraordinary Expenses Link - Conditional */}
|
||||
{settings?.features.extraordinaryExpenses && (
|
||||
<NavLink to="/extraordinary" className={navClass} onClick={closeMenu}>
|
||||
|
||||
Reference in New Issue
Block a user