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,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import {Container} from "semantic-ui-react";
|
||||
import {getStatus, saveSettings} from "../../api";
|
||||
import {PageContainer, TabLinks, Toggle} from "../Common";
|
||||
import {PageContainer, TabLinks, Toggle, useTitle} from "../Common";
|
||||
import {Route, Routes} from "react-router-dom";
|
||||
import {ThemeContext} from "../../contexts/contexts";
|
||||
import {Header, Loader} from "../Theme";
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import {
|
|||
secondsToElapsedPopup,
|
||||
secondsToFrequency,
|
||||
textEllipsis,
|
||||
useTitle,
|
||||
WROLModeMessage
|
||||
} from "../Common";
|
||||
import {
|
||||
|
|
@ -266,6 +267,8 @@ class StoppableRow extends React.Component {
|
|||
}
|
||||
|
||||
export function Downloads() {
|
||||
useTitle('Downloads');
|
||||
|
||||
const {t} = useContext(ThemeContext);
|
||||
|
||||
const {onceDownloads, recurringDownloads, fetchDownloads} = useDownloads();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {Header, Progress, Statistic, StatisticGroup} from "../Theme";
|
||||
import React, {useContext} from "react";
|
||||
import {humanBandwidth, humanFileSize, LoadStatistic} from "../Common";
|
||||
import {humanBandwidth, humanFileSize, LoadStatistic, useTitle} from "../Common";
|
||||
import {Divider, Responsive} from "semantic-ui-react";
|
||||
import {ProgressPlaceholder} from "../Placeholder";
|
||||
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
|
||||
|
|
@ -141,6 +141,8 @@ export function CPUUsageProgress({value, label}) {
|
|||
}
|
||||
|
||||
export function Status() {
|
||||
useTitle('Status');
|
||||
|
||||
const {status} = useContext(StatusContext);
|
||||
|
||||
let percent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue