optimize settings

This commit is contained in:
Qing
2022-07-18 21:20:52 +08:00
parent 4534d9275e
commit 8b1f7a672e
11 changed files with 91 additions and 64 deletions

View File

@@ -4,18 +4,20 @@ import SettingBlock from './SettingBlock'
interface NumberInputSettingProps {
title: string
desc?: string
value: string
suffix?: string
onValue: (val: string) => void
}
function NumberInputSetting(props: NumberInputSettingProps) {
const { title, value, suffix, onValue } = props
const { title, desc, value, suffix, onValue } = props
return (
<SettingBlock
className="sub-setting-block"
title={title}
desc={desc}
input={
<div
style={{