mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 22:46:20 -05:00
Adding useTitle to every function page.
This commit is contained in:
parent
1033b0c38f
commit
5bf648001b
12 changed files with 55 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import React from "react";
|
||||
import {HelpPopup, humanFileSize, PageContainer, TabLinks, WROLModeMessage} from "./Common";
|
||||
import {HelpPopup, humanFileSize, PageContainer, TabLinks, useTitle, WROLModeMessage} from "./Common";
|
||||
import {Route, Routes} from "react-router-dom";
|
||||
import {getMapImportStatus, importMapFiles} from "../api";
|
||||
import {
|
||||
|
|
@ -248,6 +248,8 @@ function MapApp() {
|
|||
}
|
||||
|
||||
export function MapRoute() {
|
||||
useTitle('Map');
|
||||
|
||||
const links = [
|
||||
{text: 'Map', to: '/map', key: 'map', end: true},
|
||||
{text: 'Manage', to: '/map/manage', key: 'manage'},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue