mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 09:24:14 +00:00
refactor: remove hide delay for tooltips
This commit is contained in:
parent
ddae0b660f
commit
48291a6457
4 changed files with 3 additions and 4 deletions
|
|
@ -31,7 +31,6 @@ export function UnselectButton() {
|
||||||
variants={variants}
|
variants={variants}
|
||||||
>
|
>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
hideDelay={0}
|
|
||||||
showDelay={0}
|
showDelay={0}
|
||||||
content={
|
content={
|
||||||
hasHistory
|
hasHistory
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue