We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc44f6c commit f7a6dd4Copy full SHA for f7a6dd4
components/pages/home/sections/HeroSection.jsx
@@ -17,16 +17,13 @@ const ProductIconWrap = styled.div`
17
const HeroSection = () => {
18
19
const [data, setData] = useState(null)
20
- const [isLoading, setLoading] = useState(false)
21
const versionNumber = data?.name ?? 'Loading...'
22
23
useEffect(() => {
24
- setLoading(true)
25
fetch('https://api.github.com/repos/CodeEditApp/CodeEdit/releases/latest')
26
.then((res) => res.json())
27
.then((data) => {
28
setData(data)
29
- setLoading(false)
30
})
31
}, [])
32
0 commit comments