mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 17:04:15 +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 { motion, AnimatePresence } from 'framer-motion';
|
||||
|
||||
import { Tooltip } from '@/components/tooltip';
|
||||
import { mix, fade, slideY } from '@/lib/motion';
|
||||
|
||||
import styles from './scroll-to-top.module.css';
|
||||
|
|
@ -33,19 +32,17 @@ export function ScrollToTop() {
|
|||
return (
|
||||
<AnimatePresence>
|
||||
{isVisible && (
|
||||
<Tooltip content="Scroll to top" hideDelay={0} showDelay={0}>
|
||||
<motion.button
|
||||
animate="show"
|
||||
aria-label="Scroll to top"
|
||||
className={styles.button}
|
||||
exit="hidden"
|
||||
initial="hidden"
|
||||
variants={variants}
|
||||
onClick={scrollToTop}
|
||||
>
|
||||
<BiUpArrowAlt />
|
||||
</motion.button>
|
||||
</Tooltip>
|
||||
<motion.button
|
||||
animate="show"
|
||||
aria-label="Scroll to top"
|
||||
className={styles.button}
|
||||
exit="hidden"
|
||||
initial="hidden"
|
||||
variants={variants}
|
||||
onClick={scrollToTop}
|
||||
>
|
||||
<BiUpArrowAlt />
|
||||
</motion.button>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue