mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 23:19:06 +00:00
correct document title
This commit is contained in:
parent
43873e226d
commit
8ebc8e501c
2 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
import React, { useCallback, useEffect } from "react";
|
import React, { useCallback } from "react";
|
||||||
import { formatKey } from "../helpers/keybinding-helpers";
|
import { formatKey } from "../helpers/keybinding-helpers";
|
||||||
import "../static/css/keybinding.css";
|
import "../static/css/keybinding.css";
|
||||||
import { useStore } from "../store";
|
import { useStore } from "../store";
|
||||||
|
@ -7,10 +7,6 @@ const Keybinding = () => {
|
||||||
const setKeybindings = useStore((state) => state.setKeybindings);
|
const setKeybindings = useStore((state) => state.setKeybindings);
|
||||||
const bindings = useStore((state) => state.keybindings);
|
const bindings = useStore((state) => state.keybindings);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
document.title = "< keybinding >";
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const handleRemap = useCallback(
|
const handleRemap = useCallback(
|
||||||
(keyToRemap: string, to: string) => {
|
(keyToRemap: string, to: string) => {
|
||||||
if (to.length === 1) to = to.toLowerCase();
|
if (to.length === 1) to = to.toLowerCase();
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
import React from "react";
|
import React, { useEffect } from "react";
|
||||||
import Header from "./Header";
|
import Header from "./Header";
|
||||||
import Keybinding from "./Keybinding";
|
import Keybinding from "./Keybinding";
|
||||||
import Savefile from "./Savefile";
|
import Savefile from "./Savefile";
|
||||||
|
|
||||||
const Options = () => {
|
const Options = () => {
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = "< options >";
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
Loading…
Reference in a new issue