feat(frontend): add Templates and Variables routes to MainLayout
This commit is contained in:
@@ -13,6 +13,8 @@ import {
|
||||
ApartmentOutlined,
|
||||
TeamOutlined,
|
||||
BarChartOutlined,
|
||||
FileTextOutlined,
|
||||
GlobalOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { useAuthStore } from '../store/auth';
|
||||
import Dashboard from '../pages/Dashboard';
|
||||
@@ -20,6 +22,8 @@ import WhatsAppAccounts from '../pages/WhatsAppAccounts';
|
||||
import Inbox from '../pages/Inbox';
|
||||
import FlowList from '../pages/FlowList';
|
||||
import FlowBuilder from '../pages/FlowBuilder';
|
||||
import FlowTemplates from '../pages/FlowTemplates';
|
||||
import GlobalVariables from '../pages/GlobalVariables';
|
||||
import Queues from '../pages/Queues';
|
||||
import SupervisorDashboard from '../pages/SupervisorDashboard';
|
||||
|
||||
@@ -58,6 +62,16 @@ export default function MainLayout() {
|
||||
icon: <ApartmentOutlined />,
|
||||
label: 'Flujos',
|
||||
},
|
||||
{
|
||||
key: '/templates',
|
||||
icon: <FileTextOutlined />,
|
||||
label: 'Plantillas',
|
||||
},
|
||||
{
|
||||
key: '/variables',
|
||||
icon: <GlobalOutlined />,
|
||||
label: 'Variables',
|
||||
},
|
||||
{
|
||||
key: '/queues',
|
||||
icon: <TeamOutlined />,
|
||||
@@ -176,6 +190,8 @@ export default function MainLayout() {
|
||||
<Route path="/flows" element={<FlowList />} />
|
||||
<Route path="/flows/new" element={<FlowBuilder />} />
|
||||
<Route path="/flows/:id" element={<FlowBuilder />} />
|
||||
<Route path="/templates" element={<FlowTemplates />} />
|
||||
<Route path="/variables" element={<GlobalVariables />} />
|
||||
<Route path="/queues" element={<Queues />} />
|
||||
<Route path="/supervisor" element={<SupervisorDashboard />} />
|
||||
<Route path="/settings" element={<div>Configuración (próximamente)</div>} />
|
||||
|
||||
Reference in New Issue
Block a user