File tree Expand file tree Collapse file tree
features/remoteConfig/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React , { useContext } from 'react'
1+ import React from 'react'
22import { ErrorBoundary } from 'react-error-boundary'
33import { AiFillBug } from 'react-icons/ai'
44import { WiRefresh } from 'react-icons/wi'
5- import '../pages/Page.css'
65
76export default function AppErrorBoundary ( { children } ) {
87 function ErrorFallback ( { error, resetErrorBoundary } ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import useAsyncError from 'src/hooks/useAsyncError'
33import { useGetRemoteConfig } from '../api/getRemoteConfig'
44import BeatLoader from 'react-spinners/BeatLoader'
55
6- export const ConfigurationWrapper = ( props ) => {
6+ type ConfigurationWrapperProps = {
7+ children : React . ReactNode
8+ }
9+
10+ export const ConfigurationWrapper = ( { children } : ConfigurationWrapperProps ) => {
711 const {
812 isLoading,
913 isError,
@@ -28,5 +32,5 @@ export const ConfigurationWrapper = (props) => {
2832 throwError ( 'Could not fetch configuration data, Make sure you are connected to the internet' )
2933 }
3034
31- return < > { props . children } </ >
35+ return < > { children } </ >
3236}
You can’t perform that action at this time.
0 commit comments