Skip to content

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonasek committed Jun 12, 2024
1 parent 3801ac1 commit fd04d02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sections/provider/ProviderReloader.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { useQueryClient } from "@tanstack/react-query"
import { useActiveRpcUrlList } from "api/provider"
import { useRemount } from "hooks/useRemount"
import { Fragment, useEffect, useState } from "react"
import { Fragment, PropsWithChildren, useEffect, useState } from "react"
import { usePrevious } from "react-use"
import { ProviderSelectButton } from "sections/provider/components/ProviderSelectButton/ProviderSelectButton"

export const ProviderReloader: React.FC<{ children?: React.ReactNode }> = ({
children,
}) => {
export const ProviderReloader: React.FC<PropsWithChildren> = ({ children }) => {
const rpcUrlList = useActiveRpcUrlList()
const rpcVersion = useRemount(rpcUrlList)
const prevRpcVersion = usePrevious(rpcVersion)
Expand Down

0 comments on commit fd04d02

Please sign in to comment.