Skip to content

Commit

Permalink
feat: ROI Calculator screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoycoechea-lightit committed Jan 24, 2024
1 parent d4a84bd commit f620368
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 24 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/eo_web/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"css": [
"assets/main-d3160e96.css"
],
"file": "assets/main-7aa2404e.js",
"file": "assets/main-6d1547c3.js",
"isEntry": true,
"src": "src/main.tsx"
}
Expand Down
1 change: 1 addition & 0 deletions apps/eo_web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface EnvironmentsConfigs {
SENIOR_PROFILE_CAREGIVER_ID: string;
SENIOR_PATIENT_SURVEY_ID: string;
SENIOR_CAREGIVER_SURVEY_ID: string;
ROI_CALCULATOR_FORM: string;
WEB_APP_URL: string;
}

Expand Down
3 changes: 3 additions & 0 deletions apps/eo_web/src/configs/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const SENIOR_PATIENT_SURVEY_ID =
export const SENIOR_CAREGIVER_SURVEY_ID =
window.data.getEnv("SENIOR_CAREGIVER_SURVEY_ID") || 240026821042139;

export const ROI_CALCULATOR_FORM =
window.data.getEnv("ROI_CALCULATOR_FORM") || 233484508737162;

export const API_ELIXIR =
window.data.getEnv("API_URL") || "http://localhost:4200";
export const API_LARAVEL =
Expand Down
2 changes: 2 additions & 0 deletions apps/eo_web/src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { ProfilingTwo } from "~/screens/profiling/ProfilingTwo";
import { ProfilingTwoRedirect } from "~/screens/profiling/ProfilingTwoRedirect";
import { ProtectedRoute } from "./ProtectedRoute";
import { CancerSurveyThankYou } from "~/screens/Cancer/CancerSurveyThankYou";
import { ROICalculator } from "~/screens/ROICalculator";


export const Router = () => {
Expand Down Expand Up @@ -88,6 +89,7 @@ export const Router = () => {
/>

<Route element={<UserRolSelector />} path={ROUTES.userRolSelector} />
<Route element={<ROICalculator />} path={ROUTES.roiCalculator} />
<Route
element={<ProfilingIntroQuestions />}
path={ROUTES.introQuestions}
Expand Down
2 changes: 2 additions & 0 deletions apps/eo_web/src/router/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const ROUTES = {
introQuestions: "/profiling-intro-questions",
profilingThankYou: "/profiling-thank-you",
accountSetup: "/account-setup",
roiCalculator: "/roi-calculator",

// Cancer PATH
cancerForm: "/cancer/profiling",
cancerSurvey: "/cancer/survey",
Expand Down
12 changes: 12 additions & 0 deletions apps/eo_web/src/screens/ROICalculator.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { JotformFrame } from "~/components/JotformFrame";

import { ROI_CALCULATOR_FORM } from "~/configs/env";
import { LayoutDefault } from "~/layouts";

export const ROICalculator = () => {
return (
<LayoutDefault >
<JotformFrame formId={ROI_CALCULATOR_FORM} />
</LayoutDefault>
);
};

0 comments on commit f620368

Please sign in to comment.