Initial commit
This commit is contained in:
22
web/src/App.tsx
Normal file
22
web/src/App.tsx
Normal file
@ -0,0 +1,22 @@
|
||||
import type { ReactNode } from 'react'
|
||||
|
||||
import { FatalErrorBoundary, RedwoodProvider } from '@redwoodjs/web'
|
||||
import { RedwoodApolloProvider } from '@redwoodjs/web/apollo'
|
||||
|
||||
import FatalErrorPage from 'src/pages/FatalErrorPage'
|
||||
|
||||
import './index.css'
|
||||
|
||||
interface AppProps {
|
||||
children?: ReactNode
|
||||
}
|
||||
|
||||
const App = ({ children }: AppProps) => (
|
||||
<FatalErrorBoundary page={FatalErrorPage}>
|
||||
<RedwoodProvider titleTemplate="%PageTitle | %AppTitle">
|
||||
<RedwoodApolloProvider>{children}</RedwoodApolloProvider>
|
||||
</RedwoodProvider>
|
||||
</FatalErrorBoundary>
|
||||
)
|
||||
|
||||
export default App
|
||||
Reference in New Issue
Block a user