Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Feb 12, 2025
1 parent 60e91a7 commit 1e8e1b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Wallet from 'src/pages/wallet/Wallet'
import Modules from 'src/pages/modules/Modules'
import { DialogProvider } from './components/DialogProvider'
import { TooltipProvider } from '@radix-ui/react-tooltip'
import type { JSX } from 'react'

const App = ():JSX.Element => {
return (
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/hooks/StationWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const useWallet = (): Wallet => {
const [processingTransaction, setProcessingTransaction] = useState<FILTransactionProcessing>()

const timeoutRef = useRef<ReturnType<typeof setTimeout>>()
const processingTxRef = useRef<typeof processingTransaction>()
const processingTxRef = useRef<typeof processingTransaction>(undefined)
processingTxRef.current = processingTransaction

const setTransactions = useCallback((
Expand Down
1 change: 1 addition & 0 deletions renderer/src/pages/dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ChartController from './ChartController'
import useStationRewards from 'src/hooks/StationRewards'
import RewardsInfo from './RewardsInfo'
import { bigIntFilToNumber } from 'src/lib/utils'
import type { JSX } from 'react'

const Dashboard = (): JSX.Element => {
const { historicalRewards, totalRewardsReceived, scheduledRewards } = useStationRewards()
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/pages/onboarding/Onboarding.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect, useCallback } from 'react'
import { useState, useEffect, useCallback, type JSX } from 'react'
import { useNavigate } from 'react-router'
import { getOnboardingCompleted, setOnboardingCompleted } from 'src/lib/station-config'
import Onboarding from 'src/components/Onboarding'
Expand Down

0 comments on commit 1e8e1b4

Please sign in to comment.