mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 09:24:14 +00:00
fix: remove tooltip
This commit is contained in:
parent
14c9e88bfb
commit
b634d6f3c3
1 changed files with 11 additions and 14 deletions
|
|
@ -2,7 +2,6 @@ import { useState, useEffect } from 'react';
|
||||||
import { BiUpArrowAlt } from 'react-icons/bi/index';
|
import { BiUpArrowAlt } from 'react-icons/bi/index';
|
||||||
import { motion, AnimatePresence } from 'framer-motion';
|
import { motion, AnimatePresence } from 'framer-motion';
|
||||||
|
|
||||||
import { Tooltip } from '@/components/tooltip';
|
|
||||||
import { mix, fade, slideY } from '@/lib/motion';
|
import { mix, fade, slideY } from '@/lib/motion';
|
||||||
|
|
||||||
import styles from './scroll-to-top.module.css';
|
import styles from './scroll-to-top.module.css';
|
||||||
|
|
@ -33,19 +32,17 @@ export function ScrollToTop() {
|
||||||
return (
|
return (
|
||||||
<AnimatePresence>
|
<AnimatePresence>
|
||||||
{isVisible && (
|
{isVisible && (
|
||||||
<Tooltip content="Scroll to top" hideDelay={0} showDelay={0}>
|
<motion.button
|
||||||
<motion.button
|
animate="show"
|
||||||
animate="show"
|
aria-label="Scroll to top"
|
||||||
aria-label="Scroll to top"
|
className={styles.button}
|
||||||
className={styles.button}
|
exit="hidden"
|
||||||
exit="hidden"
|
initial="hidden"
|
||||||
initial="hidden"
|
variants={variants}
|
||||||
variants={variants}
|
onClick={scrollToTop}
|
||||||
onClick={scrollToTop}
|
>
|
||||||
>
|
<BiUpArrowAlt />
|
||||||
<BiUpArrowAlt />
|
</motion.button>
|
||||||
</motion.button>
|
|
||||||
</Tooltip>
|
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue