correct document title

This commit is contained in:
lelenium 2021-04-12 22:33:51 +02:00
parent 43873e226d
commit 8ebc8e501c
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
import React, { useCallback, useEffect } from "react";
import React, { useCallback } from "react";
import { formatKey } from "../helpers/keybinding-helpers";
import "../static/css/keybinding.css";
import { useStore } from "../store";
@ -7,10 +7,6 @@ const Keybinding = () => {
const setKeybindings = useStore((state) => state.setKeybindings);
const bindings = useStore((state) => state.keybindings);
useEffect(() => {
document.title = "< keybinding >";
}, []);
const handleRemap = useCallback(
(keyToRemap: string, to: string) => {
if (to.length === 1) to = to.toLowerCase();

View file

@ -1,9 +1,13 @@
import React from "react";
import React, { useEffect } from "react";
import Header from "./Header";
import Keybinding from "./Keybinding";
import Savefile from "./Savefile";
const Options = () => {
useEffect(() => {
document.title = "< options >";
}, []);
return (
<>
<Header />