new changes in api base url
This commit is contained in:
17
src/App.tsx
17
src/App.tsx
@@ -50,6 +50,7 @@ import ReportsView from './components/ReportsView';
|
||||
import InventoryView from './components/InventoryView';
|
||||
import SettingsView from './components/SettingsView';
|
||||
import StoreDetailView from './components/StoreDetailView';
|
||||
import DispatchHubView from './components/DispatchHubView';
|
||||
import LoginView from './components/LoginView';
|
||||
import UserStorePage from './components/UserStorePage';
|
||||
import AwaitingApi from './components/AwaitingApi';
|
||||
@@ -580,7 +581,9 @@ export default function App() {
|
||||
? (summaryQ.data?.tenantname ? `${summaryQ.data.tenantname} Admin` : 'Admin Console')
|
||||
: currentSection === 'inventory'
|
||||
? 'Products'
|
||||
: currentSection.charAt(0).toUpperCase() + currentSection.slice(1),
|
||||
: currentSection === 'dispatch'
|
||||
? 'Console'
|
||||
: currentSection.charAt(0).toUpperCase() + currentSection.slice(1),
|
||||
icon: currentSection === 'dashboard'
|
||||
? LayoutDashboard
|
||||
: currentSection === 'inventory'
|
||||
@@ -591,7 +594,9 @@ export default function App() {
|
||||
? TrendingUp
|
||||
: currentSection === 'settings'
|
||||
? Settings
|
||||
: undefined
|
||||
: currentSection === 'dispatch'
|
||||
? Truck
|
||||
: undefined
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -608,8 +613,8 @@ export default function App() {
|
||||
/>
|
||||
|
||||
{/* Main core pages payload area */}
|
||||
<main className={`flex-1 min-w-0 transition-all duration-300 ${sidebarOpen ? 'md:pl-64' : 'md:pl-20'} ${currentSection === 'inventory' ? 'h-[calc(100vh-64px)] overflow-hidden' : 'min-h-[calc(100vh-64px)]'}`}>
|
||||
<div className={`w-full transition-all duration-300 ${currentSection === 'inventory' ? 'h-full p-4 md:p-6 overflow-hidden' : 'p-container-margin md:p-xl space-y-lg'}`}>
|
||||
<main className={`flex-1 min-w-0 transition-all duration-300 ${sidebarOpen ? 'md:pl-64' : 'md:pl-16'} ${currentSection === 'inventory' || currentSection === 'dispatch' ? 'h-[calc(100vh-64px)] overflow-hidden' : 'min-h-[calc(100vh-64px)]'}`}>
|
||||
<div className={`w-full transition-all duration-300 ${currentSection === 'dispatch' ? 'h-full overflow-hidden' : currentSection === 'inventory' ? 'h-full p-4 md:p-6 overflow-hidden' : 'p-container-margin md:p-xl space-y-lg'}`}>
|
||||
<Routes>
|
||||
<Route index element={<Navigate to="dashboard" replace />} />
|
||||
<Route path="dashboard" element={
|
||||
@@ -646,6 +651,10 @@ export default function App() {
|
||||
<SettingsView tenantId={tenantId} user={authUser ?? undefined} />
|
||||
} />
|
||||
|
||||
<Route path="dispatch" element={
|
||||
<DispatchHubView tenantId={tenantId} />
|
||||
} />
|
||||
|
||||
</Routes>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user