Continued work on the historical pages.

This commit is contained in:
2022-09-09 08:10:19 -07:00
parent d6bd620207
commit 5c0ef1f46c
11 changed files with 512 additions and 51 deletions

View File

@@ -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>
</>
)
}