refactor: remove hide delay for tooltips

This commit is contained in:
MAZE 2024-04-22 18:40:25 +03:30
parent ddae0b660f
commit 48291a6457
4 changed files with 3 additions and 4 deletions

View file

@ -31,7 +31,6 @@ export function UnselectButton() {
variants={variants} variants={variants}
> >
<Tooltip <Tooltip
hideDelay={0}
showDelay={0} showDelay={0}
content={ content={
hasHistory hasHistory

View file

@ -9,7 +9,7 @@ export function Shuffle() {
const shuffle = useSoundStore(state => state.shuffle); const shuffle = useSoundStore(state => state.shuffle);
return ( return (
<Tooltip content="Shuffle sounds" hideDelay={0} showDelay={0}> <Tooltip content="Shuffle sounds" showDelay={0}>
<button <button
aria-label="Shuffle sounds" aria-label="Shuffle sounds"
className={styles.button} className={styles.button}

View file

@ -20,7 +20,7 @@ export function Button({
tooltip, tooltip,
}: ButtonProps) { }: ButtonProps) {
return ( return (
<Tooltip content={tooltip} hideDelay={0} placement="bottom" showDelay={0}> <Tooltip content={tooltip} placement="bottom" showDelay={0}>
<button <button
className={cn( className={cn(
styles.button, styles.button,

View file

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