Feat ERP 2
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
|
||||
import CounterLayout from './layouts/CounterLayout';
|
||||
import FastEntryPage from './pages/FastEntryPage';
|
||||
import CashRegisterPage from './pages/CashRegisterPage';
|
||||
import AdminDashboard from './pages/AdminDashboard';
|
||||
import AdvancedAnalytics from './pages/AdvancedAnalytics';
|
||||
@@ -8,6 +7,7 @@ import LoginPage from './pages/LoginPage';
|
||||
import { ToastProvider } from './context/ToastContext';
|
||||
import HistoryPage from './pages/HistoryPage';
|
||||
import TreasuryPage from './pages/TreasuryPage';
|
||||
import UniversalPosPage from './pages/UniversalPosPage';
|
||||
|
||||
// Componente simple de protección
|
||||
const PrivateRoute = ({ children }: { children: React.ReactNode }) => {
|
||||
@@ -25,7 +25,7 @@ function App() {
|
||||
<Route element={<PrivateRoute><CounterLayout /></PrivateRoute>}>
|
||||
<Route path="/" element={<Navigate to="/dashboard" replace />} />
|
||||
<Route path="/dashboard" element={<AdminDashboard />} />
|
||||
<Route path="/nuevo-aviso" element={<FastEntryPage />} />
|
||||
<Route path="/pos" element={<UniversalPosPage />} />
|
||||
<Route path="/caja" element={<CashRegisterPage />} />
|
||||
<Route path="/analitica" element={<AdvancedAnalytics />} />
|
||||
<Route path="/historial" element={<HistoryPage />} />
|
||||
|
||||
Reference in New Issue
Block a user