Skip to content

Commit ba31363

Browse files
Finalizando.
durante meus testes esqueci de inverter o estado inicial do botão.
1 parent 509703c commit ba31363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/BackToTop/BackToTop.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from "react"
22

33
const BackToTop =() => {
44

5-
const [isVisible, setVisibility] = useState(!false)
5+
const [isVisible, setVisibility] = useState(false)
66

77
const scrollToTop = () => {
88
let root = document.getElementById('root')
@@ -32,4 +32,4 @@ return (isVisible && (
3232
));
3333
}
3434

35-
export { BackToTop };
35+
export { BackToTop };

0 commit comments

Comments
 (0)