fix: remove tooltip

This commit is contained in:
MAZE 2023-11-01 17:46:31 +03:30
parent 14c9e88bfb
commit b634d6f3c3

View file

@ -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,7 +32,6 @@ 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"
@ -45,7 +43,6 @@ export function ScrollToTop() {
> >
<BiUpArrowAlt /> <BiUpArrowAlt />
</motion.button> </motion.button>
</Tooltip>
)} )}
</AnimatePresence> </AnimatePresence>
); );