mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
feat: change tooltip content
This commit is contained in:
parent
240fd9c6e0
commit
941e1f0241
@ -46,8 +46,8 @@ export function Notepad({ onClose, show }: NotepadProps) {
|
|||||||
<Button
|
<Button
|
||||||
critical={!history}
|
critical={!history}
|
||||||
icon={history ? <FaUndo /> : <BiTrash />}
|
icon={history ? <FaUndo /> : <BiTrash />}
|
||||||
recommended={history}
|
recommended={!!history}
|
||||||
tooltip="Clear Note"
|
tooltip={history ? 'Restore Note' : 'Clear Note'}
|
||||||
onClick={() => (history ? restore() : clear())}
|
onClick={() => (history ? restore() : clear())}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user