diff --git a/frontend/lib/justfix-route-info.ts b/frontend/lib/justfix-route-info.ts index 0d0f127db..525fa9ee2 100644 --- a/frontend/lib/justfix-route-info.ts +++ b/frontend/lib/justfix-route-info.ts @@ -14,6 +14,7 @@ import { createRentalHistoryRouteInfo } from "./rh/route-info"; import { createPasswordResetRouteInfo } from "./password-reset/route-info"; import { createEmergencyHPActionRouteInfo } from "./hpaction/emergency/route-info"; import { createAccountSettingsRouteInfo } from "./account-settings/route-info"; +import { createLaLetterBuilderLocalizedRouteInfo } from "./laletterbuilder/route-info"; import { adminRouteInfo } from "./admin/route-info"; /** @@ -126,6 +127,10 @@ function createLocalizedRouteInfo(prefix: string) { rh: createRentalHistoryRouteInfo(`${prefix}/rh`), + laletterbuilder: createLaLetterBuilderLocalizedRouteInfo( + `${prefix}/laletterbuilder` + ), + /** The data requests portal. */ dataRequests: createDataRequestsRouteInfo(`${prefix}/data-requests`), diff --git a/frontend/lib/justfix-routes.tsx b/frontend/lib/justfix-routes.tsx index 642ea430f..18f67c6cb 100644 --- a/frontend/lib/justfix-routes.tsx +++ b/frontend/lib/justfix-routes.tsx @@ -58,6 +58,13 @@ const LoadableRentalHistoryRoutes = loadable( } ); +const LoadableLaLetterBuilderRoutes = loadable( + () => friendlyLoad(import("./laletterbuilder/site")), // Change this to routes, but need to rewrite routes + { + fallback: , + } +); + const LoadableDevRoutes = loadable(() => friendlyLoad(import("./dev/routes")), { fallback: , }); @@ -150,6 +157,10 @@ export const JustfixRouteComponent: React.FC = (props) => { path={JustfixRoutes.locale.rh.prefix} component={LoadableRentalHistoryRoutes} /> +