Skip to content

Commit

Permalink
refactor: Footer from jsx to tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Sep 26, 2023
1 parent 28fed7f commit c297e33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Footer.jsx → src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect, useMemo } from 'react'
import { useState, useEffect, useMemo } from 'react'
import * as rb from 'react-bootstrap'
import { Trans, useTranslation } from 'react-i18next'
import { useSettings, useSettingsDispatch } from '../context/SettingsContext'
Expand All @@ -15,7 +15,7 @@ export default function Footer() {
const websocketState = useWebsocketState()
const currentWallet = useCurrentWallet()

const [websocketConnected, setWebsocketConnected] = useState()
const [websocketConnected, setWebsocketConnected] = useState(false)
const [showBetaWarning, setShowBetaWarning] = useState(false)
const [showCheatsheet, setShowCheatsheet] = useState(false)

Expand All @@ -27,7 +27,7 @@ export default function Footer() {
}, [websocketState])

useEffect(() => {
let timer
let timer: NodeJS.Timeout
// show the cheatsheet once after the first wallet has been created
if (cheatsheetEnabled && settings.showCheatsheet) {
timer = setTimeout(() => {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"strict": true,
"jsx": "react-jsx",
"skipLibCheck": true,
"allowJs": true
"allowJs": true,
"resolveJsonModule": true
}
}

0 comments on commit c297e33

Please sign in to comment.