Continued work on the historical pages.
This commit is contained in:
@@ -3,6 +3,8 @@ import React, {lazy, Suspense, useState} from 'react';
|
||||
import { useTracker } from 'meteor/react-meteor-data';
|
||||
import _ from 'lodash';
|
||||
import TabNav from '../util/TabNav';
|
||||
import {Route, Routes} from "react-router-dom";
|
||||
import Search from './History/Search'
|
||||
|
||||
export default () => {
|
||||
let tabs = [
|
||||
@@ -16,15 +18,23 @@ export default () => {
|
||||
href: 'chromebookUsage'
|
||||
},
|
||||
{
|
||||
title: "Asset Assignments",
|
||||
title: "Asset History",
|
||||
getElement: () => {
|
||||
const AssetAssignments = lazy(()=>import('./History/AssetAssignments'))
|
||||
return <AssetAssignments/>
|
||||
const AssetHistory = lazy(()=>import('./History/AssetHistory'))
|
||||
return <AssetHistory/>
|
||||
},
|
||||
path: '/assetAssignments',
|
||||
href: 'assetAssignments'
|
||||
path: '/assetHistory',
|
||||
href: 'assetHistory'
|
||||
},
|
||||
]
|
||||
|
||||
return <TabNav tabs={tabs}/>
|
||||
return (
|
||||
<>
|
||||
<TabNav tabs={tabs}/>
|
||||
|
||||
<Routes>
|
||||
<Route path="search" element={<Search/>}/>
|
||||
</Routes>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user