mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -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
|
|
@ -3,7 +3,7 @@ import {NavLink} from "react-router-dom";
|
|||
import {Dropdown, Menu, Responsive} from "semantic-ui-react";
|
||||
import {StatusContext, ThemeContext} from "../contexts/contexts";
|
||||
import Icon from "semantic-ui-react/dist/commonjs/elements/Icon";
|
||||
import {DarkModeToggle, HotspotStatusIcon} from "./Common";
|
||||
import {DarkModeToggle, HotspotStatusIcon, NAME} from "./Common";
|
||||
|
||||
const responsiveWidth = 500;
|
||||
|
||||
|
|
@ -70,7 +70,8 @@ function NavIcon(props) {
|
|||
export function NavBar() {
|
||||
const {status} = useContext(StatusContext);
|
||||
const wrol_mode = status ? status['wrol_mode'] : null;
|
||||
const topNavText = wrol_mode ? <>WROLPi <Icon name='lock'/></> : 'WROLPi';
|
||||
const name = NAME || 'WROLPi';
|
||||
const topNavText = wrol_mode ? <>{name} <Icon name='lock'/></> : name;
|
||||
const {i} = useContext(ThemeContext);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue