Skip to content

Commit

Permalink
refactor: remove hide delay for tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Apr 22, 2024
1 parent ddae0b6 commit 48291a6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/buttons/unselect/unselect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export function UnselectButton() {
variants={variants}
>
<Tooltip
hideDelay={0}
showDelay={0}
content={
hasHistory
Expand Down
2 changes: 1 addition & 1 deletion src/components/shuffle/shuffle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function Shuffle() {
const shuffle = useSoundStore(state => state.shuffle);

return (
<Tooltip content="Shuffle sounds" hideDelay={0} showDelay={0}>
<Tooltip content="Shuffle sounds" showDelay={0}>
<button
aria-label="Shuffle sounds"
className={styles.button}
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbox/notepad/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function Button({
tooltip,
}: ButtonProps) {
return (
<Tooltip content={tooltip} hideDelay={0} placement="bottom" showDelay={0}>
<Tooltip content={tooltip} placement="bottom" showDelay={0}>
<button
className={cn(
styles.button,
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbox/pomodoro/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface ButtonProps {

export function Button({ icon, onClick, smallIcon, tooltip }: ButtonProps) {
return (
<Tooltip content={tooltip} hideDelay={0} placement="bottom" showDelay={0}>
<Tooltip content={tooltip} placement="bottom" showDelay={0}>
<button
className={cn(styles.button, smallIcon && styles.smallIcon)}
onClick={onClick}
Expand Down

0 comments on commit 48291a6

Please sign in to comment.