make random dice work

This commit is contained in:
Qing
2022-09-21 22:51:58 +08:00
parent d39bf73fac
commit 047474ab84
4 changed files with 94 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ import SettingBlock from '../Settings/SettingBlock'
import Selector from '../shared/Selector'
import { Switch, SwitchThumb } from '../shared/Switch'
import Button from '../shared/Button'
import emitter, { EVENT_PROMPT } from '../../event'
import emitter, { EVENT_RERUN } from '../../event'
const INPUT_WIDTH = 30
@@ -18,7 +18,7 @@ const SidePanel = () => {
const [setting, setSettingState] = useRecoilState(settingState)
const onReRunBtnClick = () => {
emitter.emit(EVENT_PROMPT)
emitter.emit(EVENT_RERUN)
}
return (