mirror of
https://github.com/RealKai42/qwerty-learner.git
synced 2026-04-04 22:09:04 +08:00
【优化】简单优化了一下StartButton按钮的逻辑 (#788)
* 发现一个提示窗bug * 优化startbutton提示框提醒,统一风格:[功能] (keymap) * fix: remove comments --------- Co-authored-by: Kai <me@kaiyi.cool>
This commit is contained in:
@@ -32,7 +32,7 @@ export default function StartButton({ isLoading }: { isLoading: boolean }) {
|
||||
const { getReferenceProps, getFloatingProps } = useInteractions([hoverButton])
|
||||
|
||||
return (
|
||||
<Tooltip content="快捷键 Enter" className="box-content h-7 w-8 px-6 py-1">
|
||||
<Tooltip content={`${state.isTyping ? '暂停' : '开始'} (Enter)`} className="box-content h-7 w-8 px-6 py-1">
|
||||
<div
|
||||
ref={refs.setReference}
|
||||
{...getReferenceProps()}
|
||||
|
||||
Reference in New Issue
Block a user