Renaming Apps to More.

This commit is contained in:
Roland 2023-01-31 17:26:43 -07:00
parent 7a55f8677b
commit c02dbe4797
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ import {Container} from "semantic-ui-react";
import 'semantic-ui-offline/semantic.min.css';
import {SemanticToastContainer} from 'react-semantic-toasts';
import 'react-semantic-toasts/styles/react-semantic-alert.css';
import {AppsRoute} from "./components/Apps";
import {MoreRoute} from "./components/Apps";
import {InventoryRoute} from "./components/Inventory";
import {ArchiveRoute} from "./components/Archive";
import {FilesRoute} from "./components/Files";
@ -69,7 +69,7 @@ const router = createBrowserRouter(createRoutesFromElements(
<Route path='videos/channel/:channelId/video/:videoId' exact element={<VideoWrapper/>}/>
<Route path="videos/*" element={<VideosRoute/>}/>
<Route path="admin/*" element={<Admin/>}/>
<Route path="apps/*" element={<AppsRoute/>}/>
<Route path="more/*" element={<MoreRoute/>}/>
<Route path="inventory/*" element={<InventoryRoute/>}/>
<Route path='archive/*' element={<ArchiveRoute/>}/>
<Route path='map/*' element={<MapRoute/>}/>

View file

@ -247,7 +247,7 @@ function StatisticsPage() {
}
export function AppsRoute(props) {
export function MoreRoute(props) {
return (<PageContainer>
<Routes>
<Route path='otp' exact element={<OTP/>}/>

View file

@ -10,8 +10,8 @@ const links = [{text: 'Videos', to: '/videos', key: 'videos'}, {
}, {text: 'Map', to: '/map', key: 'map'}, {text: 'Files', to: '/files', key: 'files'}, {
text: 'Inventory', to: '/inventory', key: 'inventory'
}, {
key: 'apps', text: 'Apps', links: [{to: '/apps/otp', text: 'One Time Pad', end: true}, {
to: '/apps/statistics', text: 'Statistics', end: true
key: 'more', text: 'More', links: [{to: '/more/otp', text: 'One Time Pad', end: true}, {
to: '/more/statistics', text: 'Statistics', end: true
},]
},];
const admin = {to: '/admin', text: 'Admin', key: 'admin'};
@ -72,7 +72,7 @@ export function NavBar() {
{icons}
<Dropdown item icon="bars">
<Dropdown.Menu>
{collapsedLinks.map(i =><MenuLink link={i} key={i.key}/>)}
{collapsedLinks.map(i => <MenuLink link={i} key={i.key}/>)}
</Dropdown.Menu>
</Dropdown>
</Menu.Menu>