Adding useTitle to every function page.

This commit is contained in:
Roland 2022-10-25 15:57:44 -06:00
parent 1033b0c38f
commit 5bf648001b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
12 changed files with 55 additions and 12 deletions

View file

@ -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`;