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