Some checks failed
build-docker-imge / Build the docker container (push) Failing after 1m25s
30 lines
732 B
TypeScript
30 lines
732 B
TypeScript
import type { ReactNode } from 'react'
|
|
|
|
import { FatalErrorBoundary, RedwoodProvider } from '@redwoodjs/web'
|
|
import { RedwoodApolloProvider } from '@redwoodjs/web/apollo'
|
|
|
|
import FatalErrorPage from 'src/pages/FatalErrorPage'
|
|
|
|
import { AuthProvider, useAuth } from './auth'
|
|
|
|
import './index.css'
|
|
import './scaffold.css'
|
|
|
|
interface AppProps {
|
|
children?: ReactNode
|
|
}
|
|
|
|
const App = ({ children }: AppProps) => (
|
|
<FatalErrorBoundary page={FatalErrorPage}>
|
|
<RedwoodProvider titleTemplate="%PageTitle | %AppTitle">
|
|
<AuthProvider>
|
|
<RedwoodApolloProvider useAuth={useAuth}>
|
|
{children}
|
|
</RedwoodApolloProvider>
|
|
</AuthProvider>
|
|
</RedwoodProvider>
|
|
</FatalErrorBoundary>
|
|
)
|
|
|
|
export default App
|