Skip to content

Commit

Permalink
feat: delete unnecessary athletes stuff (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat0ias authored Jul 25, 2024
1 parent 2d73376 commit b896e14
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 146 deletions.
2 changes: 0 additions & 2 deletions apps/eo_web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ ZUKO_SLUG_ID_PROCESS_START=
CANCER_PROFILE_PATIENT_ID=
CANCER_PROFILE_CAREGIVER_ID=
CANCER_SURVEY_FORM=
ATHLETE_PROFILE_FORM=
ATHLETE_SURVEY_FORM=
API_URL=
API_LARAVEL=
2 changes: 0 additions & 2 deletions apps/eo_web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ interface EnvironmentsConfigs {
CANCER_PROFILE_CAREGIVER_ID: string;
CANCER_PATIENT_SURVEY_ID: string;
CANCER_CAREGIVER_SURVEY_ID: string;
ATHLETE_PROFILE_FORM: string;
ATHLETE_SURVEY_FORM: string;
SENIOR_INTRO_QUESTION_PATIENT_ID: string;
SENIOR_INTRO_QUESTION_CAREGIVER_ID: string;
SENIOR_PROFILE_PATIENT_ID: string;
Expand Down
8 changes: 1 addition & 7 deletions apps/eo_web/src/api/useApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { apiElixir, apiLaravel } from "~/api/axios";
import {
type AvoidPresentation,
type Maladies,
Expand All @@ -7,6 +6,7 @@ import {
type ThcProductPreferences,
type WorseSymptomsMoment,
} from "~/api/PrePlanTypes";
import { apiElixir, apiLaravel } from "~/api/axios";
import { useProfileStore, type Profile } from "~/stores/useProfileStore";
import { type FlowType } from "~/stores/useProfilingStore";

Expand Down Expand Up @@ -155,11 +155,6 @@ export const useApi = () => {
data,
);

const postAthleteSurveyFormSubmission = async (data: object) =>
await apiLaravel.post<
LaravelSuccessBase<ProfileCreationResult> | LaravelErrorValidation
>("/api/athletes/survey", data);

const postSeniorFormSubmission = async (data: object) =>
await apiLaravel.post<
LaravelSuccessBase<ProfileCreationResult> | LaravelErrorValidation
Expand Down Expand Up @@ -191,7 +186,6 @@ export const useApi = () => {
eligibleEmail,
postCancerFormSubmission,
postCancerSurveyFormSubmission,
postAthleteSurveyFormSubmission,
postSeniorFormSubmission,
postSeniorSurveyFormSubmission,
surveyStatus,
Expand Down
5 changes: 0 additions & 5 deletions apps/eo_web/src/configs/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ export const CANCER_PATIENT_SURVEY_ID =
export const CANCER_CAREGIVER_SURVEY_ID =
window.data.getEnv("CANCER_CAREGIVER_SURVEY_ID") || 233415093176152;

export const ATHLETE_PROFILE_FORM =
window.data.getEnv("ATHLETE_PROFILE_FORM") || 233115151709146;
export const ATHLETE_SURVEY_FORM =
window.data.getEnv("ATHLETE_SURVEY_FORM") || 233164188186664;

export const SENIOR_INTRO_QUESTION_PATIENT_ID =
window.data.getEnv("SENIOR_INTRO_QUESTION_PATIENT_ID") || 233233204641040;
export const SENIOR_INTRO_QUESTION_CAREGIVER_ID =
Expand Down
9 changes: 0 additions & 9 deletions apps/eo_web/src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { Route, Routes } from "react-router-dom";

import { ROUTES } from "~/router/routes";
import { AccountCreation } from "~/screens/AccountCreation";
import { AthleteSurveyForm } from "~/screens/Athlete/AthleteSurveyForm";
import { AthleteSurveyThankYou } from "~/screens/Athlete/AthleteSurveyThankYou";
import { CancerSurveyThankYou } from "~/screens/Cancer/CancerSurveyThankYou";
import { Profiling } from "~/screens/Cancer/Profiling";
import { SurveyForm } from "~/screens/Cancer/SurveyForm";
Expand Down Expand Up @@ -113,13 +111,6 @@ export const Router = () => {
path={ROUTES.cancerSurveyThankYou}
/>

{/* ATHLETES */}
<Route element={<AthleteSurveyForm />} path={ROUTES.athleteSurvey} />
<Route
element={<AthleteSurveyThankYou />}
path={ROUTES.athleteSurveyThankYou}
/>

{/* SENIOR */}
<Route element={<SeniorProfiling />} path={ROUTES.seniorForm} />
<Route element={<SeniorSurveyForm />} path={ROUTES.seniorSurvey} />
Expand Down
4 changes: 0 additions & 4 deletions apps/eo_web/src/router/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export const ROUTES = {
cancerSurvey: "/cancer/survey",
cancerSurveyThankYou: "/cancer/survey-thank-you",

// Athletes PATH
athleteSurvey: "/athletes/survey",
athleteSurveyThankYou: "athletes/survey-thank-you",

// Senior PATH
seniorForm: "/senior/profiling",
seniorSurvey: "/senior/survey",
Expand Down
42 changes: 0 additions & 42 deletions apps/eo_web/src/screens/Athlete/AthleteSurveyForm.tsx

This file was deleted.

75 changes: 0 additions & 75 deletions apps/eo_web/src/screens/Athlete/AthleteSurveyThankYou.tsx

This file was deleted.

0 comments on commit b896e14

Please sign in to comment.