From 757b8a561e3b993845f10dd269398c9072b6d32b Mon Sep 17 00:00:00 2001 From: Samara Trilling Date: Thu, 26 May 2022 11:51:59 -0400 Subject: [PATCH] First stab at app.justfix.nyc/en/laletterbuilder --- frontend/lib/justfix-route-info.ts | 5 +++++ frontend/lib/justfix-routes.tsx | 11 +++++++++++ frontend/lib/laletterbuilder/route-info.ts | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) 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} /> +