diff --git a/src/components/Footer/ButtonFloat/ButtonFloat.tsx b/src/components/Footer/ButtonFloat/ButtonFloat.tsx index f4359ae..8b8b29f 100644 --- a/src/components/Footer/ButtonFloat/ButtonFloat.tsx +++ b/src/components/Footer/ButtonFloat/ButtonFloat.tsx @@ -22,12 +22,15 @@ const ButtonFloat = () => { window.scrollTo(0, 0); } - return ( -
- - -
- ) + if (scrollPage > 140) { + + return ( +
+ + +
+ ) + } else return null; } diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 3292c15..58bd07c 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -18,7 +18,7 @@ const Header = () => {
- + Logo M3 Academy