overleaf/services/web/frontend/js/features/subscription/components/successful-subscription/root.tsx
ilkin-overleaf 48587a7a62 Merge pull request #12007 from overleaf/ii-react-subscription-dash-thank-you
[web] Successful subscription react migration

GitOrigin-RevId: 1d7d849415f4b7a7f60ddf8a4e18570ff5142196
2023-03-02 09:04:04 +00:00

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