update ui brand device
This commit is contained in:
46
src/App.jsx
46
src/App.jsx
@@ -4,6 +4,7 @@ import SignIn from './pages/auth/SignIn';
|
||||
import SignUp from './pages/auth/Signup';
|
||||
import { ProtectedRoute } from './ProtectedRoute';
|
||||
import NotFound from './pages/blank/NotFound';
|
||||
import { BrandFormProvider } from './context/BrandFormContext';
|
||||
|
||||
// Dashboard
|
||||
import Home from './pages/home/Home';
|
||||
@@ -21,6 +22,7 @@ import IndexShift from './pages/master/shift/IndexShift';
|
||||
// Brand device
|
||||
import AddBrandDevice from './pages/master/brandDevice/AddBrandDevice';
|
||||
import EditBrandDevice from './pages/master/brandDevice/EditBrandDevice';
|
||||
import AddEditErrorCode from './pages/master/brandDevice/AddEditErrorCode';
|
||||
import ViewBrandDevice from './pages/master/brandDevice/ViewBrandDevice';
|
||||
import ViewFilePage from './pages/master/brandDevice/ViewFilePage';
|
||||
|
||||
@@ -91,25 +93,37 @@ const App = () => {
|
||||
<Route path="tag" element={<IndexTag />} />
|
||||
<Route path="unit" element={<IndexUnit />} />
|
||||
<Route path="sparepart" element={<IndexSparepart />} />
|
||||
<Route path="brand-device" element={<IndexBrandDevice />} />
|
||||
<Route path="brand-device/add" element={<AddBrandDevice />} />
|
||||
<Route path="brand-device/edit/:id" element={<EditBrandDevice />} />
|
||||
<Route path="brand-device/view/:id" element={<ViewBrandDevice />} />
|
||||
<Route
|
||||
path="brand-device/edit/:id/files/:fileType/:fileName"
|
||||
element={<ViewFilePage />}
|
||||
/>
|
||||
<Route
|
||||
path="brand-device/view/:id/files/:fileType/:fileName"
|
||||
element={<ViewFilePage />}
|
||||
/>
|
||||
<Route
|
||||
path="brand-device/view/temp/files/:fileName"
|
||||
element={<ViewFilePage />}
|
||||
/>
|
||||
<Route path="plant-sub-section" element={<IndexPlantSubSection />} />
|
||||
<Route path="shift" element={<IndexShift />} />
|
||||
<Route path="status" element={<IndexStatus />} />
|
||||
|
||||
{/* Brand Device Routes with BrandFormProvider */}
|
||||
<Route path="brand-device/*" element={
|
||||
<BrandFormProvider>
|
||||
<Routes>
|
||||
<Route path="" element={<IndexBrandDevice />} />
|
||||
<Route path="add" element={<AddBrandDevice />} />
|
||||
<Route path="edit/:id" element={<EditBrandDevice />} />
|
||||
<Route path="view/:id" element={<ViewBrandDevice />} />
|
||||
<Route
|
||||
path="edit/:id/files/:fileType/:fileName"
|
||||
element={<ViewFilePage />}
|
||||
/>
|
||||
<Route
|
||||
path="view/:id/files/:fileType/:fileName"
|
||||
element={<ViewFilePage />}
|
||||
/>
|
||||
<Route
|
||||
path="view/temp/files/:fileName"
|
||||
element={<ViewFilePage />}
|
||||
/>
|
||||
<Route path=":brandId/error-code/add" element={<AddEditErrorCode />} />
|
||||
<Route path=":brandId/error-code/edit/:errorCodeId" element={<AddEditErrorCode />} />
|
||||
<Route path="add/error-code/add" element={<AddEditErrorCode />} />
|
||||
<Route path="add/error-code/edit/:errorCodeId" element={<AddEditErrorCode />} />
|
||||
</Routes>
|
||||
</BrandFormProvider>
|
||||
} />
|
||||
</Route>
|
||||
|
||||
<Route path="/report" element={<ProtectedRoute />}>
|
||||
|
||||
Reference in New Issue
Block a user