refactor: adjust setting dialog component

This commit is contained in:
GyDi
2022-11-20 21:48:39 +08:00
parent 572d81ecef
commit 892b919cf3
23 changed files with 845 additions and 988 deletions

View File

@@ -1,4 +1,3 @@
import { useState } from "react";
import { alpha, Box, IconButton, styled } from "@mui/material";
import { DeleteRounded } from "@mui/icons-material";
import parseHotkey from "@/utils/parse-hotkey";
@@ -52,7 +51,7 @@ interface Props {
onChange: (value: string[]) => void;
}
const HotkeyInput = (props: Props) => {
export const HotkeyInput = (props: Props) => {
const { value, onChange } = props;
return (
@@ -92,5 +91,3 @@ const HotkeyInput = (props: Props) => {
</Box>
);
};
export default HotkeyInput;