@@ -14,7 +14,6 @@ import {
1414 ErrorDisplay ,
1515 ToastProvider ,
1616} from '@neinteractiveliterature/litform' ;
17- import { HelmetProvider } from 'react-helmet-async' ;
1817
1918import AuthenticationModalContext , {
2019 useAuthenticationModalProvider ,
@@ -79,35 +78,33 @@ function ProviderStack(props: AppWrapperProps) {
7978
8079 return (
8180 < ApolloProvider client = { client } >
82- < HelmetProvider >
83- { /* TODO bring this back when we re-add prompting getUserConfirmation={getUserConfirmation}> */ }
84- < RailsDirectUploadsContext . Provider value = { railsDirectUploadsContextValue } >
85- < AuthenticationModalContext . Provider value = { authenticationModalContextValue } >
86- < >
87- { ! unauthenticatedError && (
88- < Suspense fallback = { < PageLoadingIndicator visible iconSet = "bootstrap-icons" /> } >
89- < I18NextWrapper >
90- { ( i18nInstance ) => (
91- < AlertProvider okText = { i18nInstance . t ( 'buttons.ok' , 'OK' ) } >
92- < ToastProvider
93- formatTimeAgo = { ( timeAgo ) =>
94- DateTime . now ( ) . minus ( Duration . fromMillis ( timeAgo . milliseconds ) ) . toRelative ( )
95- }
96- >
97- < ErrorBoundary placement = "replace" errorType = "plain" >
98- < Outlet />
99- </ ErrorBoundary >
100- </ ToastProvider >
101- </ AlertProvider >
102- ) }
103- </ I18NextWrapper >
104- </ Suspense >
105- ) }
106- < AuthenticationModal />
107- </ >
108- </ AuthenticationModalContext . Provider >
109- </ RailsDirectUploadsContext . Provider >
110- </ HelmetProvider >
81+ { /* TODO bring this back when we re-add prompting getUserConfirmation={getUserConfirmation}> */ }
82+ < RailsDirectUploadsContext . Provider value = { railsDirectUploadsContextValue } >
83+ < AuthenticationModalContext . Provider value = { authenticationModalContextValue } >
84+ < >
85+ { ! unauthenticatedError && (
86+ < Suspense fallback = { < PageLoadingIndicator visible iconSet = "bootstrap-icons" /> } >
87+ < I18NextWrapper >
88+ { ( i18nInstance ) => (
89+ < AlertProvider okText = { i18nInstance . t ( 'buttons.ok' , 'OK' ) } >
90+ < ToastProvider
91+ formatTimeAgo = { ( timeAgo ) =>
92+ DateTime . now ( ) . minus ( Duration . fromMillis ( timeAgo . milliseconds ) ) . toRelative ( )
93+ }
94+ >
95+ < ErrorBoundary placement = "replace" errorType = "plain" >
96+ < Outlet />
97+ </ ErrorBoundary >
98+ </ ToastProvider >
99+ </ AlertProvider >
100+ ) }
101+ </ I18NextWrapper >
102+ </ Suspense >
103+ ) }
104+ < AuthenticationModal />
105+ </ >
106+ </ AuthenticationModalContext . Provider >
107+ </ RailsDirectUploadsContext . Provider >
111108 </ ApolloProvider >
112109 ) ;
113110}
@@ -123,7 +120,7 @@ export type AppWrapperProps = {
123120 stripePublishableKey : string ;
124121} ;
125122
126- function AppWrapper < P extends JSX . IntrinsicAttributes > (
123+ function AppWrapper < P extends React . JSX . IntrinsicAttributes > (
127124 WrappedComponent : React . ComponentType < P > ,
128125) : React . ComponentType < P > {
129126 function Wrapper ( props : P & AppWrapperProps ) {
0 commit comments