From 1e8685778d30b73a56f8fe45f566239206f653bd Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 12 Nov 2022 09:08:14 -0800 Subject: [PATCH] Add lazy loading. --- packages/webapp/src/app.tsx | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/packages/webapp/src/app.tsx b/packages/webapp/src/app.tsx index 7943ae48..fee7e8b5 100644 --- a/packages/webapp/src/app.tsx +++ b/packages/webapp/src/app.tsx @@ -1,5 +1,5 @@ import React, { ReactElement, Suspense } from 'react'; -import { IntlProvider } from 'react-intl'; +import { FormattedMessage, IntlProvider } from 'react-intl'; import { Route, Switch, Redirect, BrowserRouter as Router } from 'react-router-dom'; import ForgotPasswordSuccessPage from './components/forgot-password-success-page'; import RegistationPage from './components/registration-page'; @@ -67,15 +67,35 @@ const App = (): ReactElement => { - }> + + + + } + > - + + + + } + > + + - }> + + + + } + >