mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 18:54:23 -05:00
48587a7a62
[web] Successful subscription react migration GitOrigin-RevId: 1d7d849415f4b7a7f60ddf8a4e18570ff5142196
19 lines
470 B
TypeScript
19 lines
470 B
TypeScript
import useWaitForI18n from '../../../../shared/hooks/use-wait-for-i18n'
|
|
import { SubscriptionDashboardProvider } from '../../context/subscription-dashboard-context'
|
|
import SuccessfulSubscription from './successful-subscription'
|
|
|
|
function Root() {
|
|
const { isReady } = useWaitForI18n()
|
|
|
|
if (!isReady) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<SubscriptionDashboardProvider>
|
|
<SuccessfulSubscription />
|
|
</SubscriptionDashboardProvider>
|
|
)
|
|
}
|
|
|
|
export default Root
|