mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-28 19:06:19 -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 {Divider, SegmentGroup} from "semantic-ui-react";
|
|||
import {Route, Routes} from "react-router-dom";
|
||||
import "../static/wrolpi.css";
|
||||
import {decryptOTP, encryptOTP} from "../api";
|
||||
import {PageContainer} from "./Common";
|
||||
import {PageContainer, useTitle} from "./Common";
|
||||
import {ThemeContext} from "../contexts/contexts";
|
||||
import {Button, Header, Segment, TextArea} from "./Theme";
|
||||
|
||||
|
|
@ -122,6 +122,8 @@ class Decrypt extends React.Component {
|
|||
}
|
||||
|
||||
function OTP() {
|
||||
useTitle('One Time Pad');
|
||||
|
||||
const {t} = useContext(ThemeContext);
|
||||
|
||||
let newPadURL = `http://${window.location.host}/api/otp/html`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue