Skip to content

Commit

Permalink
【优化】简单优化了一下StartButton按钮的逻辑 (#788)
Browse files Browse the repository at this point in the history
* 发现一个提示窗bug

* 优化startbutton提示框提醒,统一风格:[功能] (keymap)

* fix: remove comments

---------

Co-authored-by: Kai <[email protected]>
  • Loading branch information
JayChou404 and RealKai42 authored Jun 11, 2024
1 parent da9313f commit 33d1f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Typing/components/StartButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down

0 comments on commit 33d1f36

Please sign in to comment.