-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from Light-it-labs/develop
[RELEASE] 22 February ππ
- Loading branch information
Showing
19 changed files
with
358 additions
and
172 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
apps/eo_web/dist/assets/main-ddf6ac53.css β apps/eo_web/dist/assets/main-f1ea2402.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const Loading = () => { | ||
return ( | ||
<div | ||
className="right-[calc(50%-20px)] top-1/2 h-12 w-12 animate-spin rounded-full border-4 border-gray-200 border-t-gray-1000" | ||
style={{ | ||
position: "absolute", | ||
}} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Button, Typography, icons } from "@eo/ui"; | ||
|
||
import { WEB_APP_URL } from "~/configs/env"; | ||
|
||
export const SurveyResponded = () => ( | ||
<div className="mx-6 flex flex-col-reverse justify-between lg:ml-8 lg:flex-row xl:mx-0 xl:ml-[155px] xl:mt-[144px] xl:w-[979px] xl:items-center"> | ||
<section className="mt-4 flex flex-col gap-[35px] lg:mt-0"> | ||
<Typography | ||
variant="large" | ||
className="!text-[48px] font-extrabold !leading-[120%]" | ||
> | ||
Survey already <br /> | ||
responded! | ||
</Typography> | ||
<Typography className="text-[20px] text-gray-800" font="regular"> | ||
Thank you for answering our survey! <br /> | ||
Your insights are greatly appreciated and will help us improve. | ||
</Typography> | ||
<div> | ||
<a href={WEB_APP_URL} className="float-left block"> | ||
<Button variant="black"> | ||
<span className="hidden lg:block">Go Back Home</span> | ||
<span className="lg:hidden">Go Back</span> | ||
</Button> | ||
</a> | ||
</div> | ||
</section> | ||
<icons.SurveyIcon className="mt-0 lg:mt-6" /> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const scapeParamFromQuery = ( | ||
key: string, | ||
urlParam?: URLSearchParams, | ||
): string | null => { | ||
if (!urlParam) { | ||
urlParam = new URLSearchParams(window.location.search); | ||
} | ||
const val = urlParam.get(key); | ||
return val ? val.replace(" ", "+") : null; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,21 @@ import { toast } from "react-toastify"; | |
import { Typography } from "@eo/ui"; | ||
|
||
import { useApi } from "~/api/useApi"; | ||
import { useMount } from "~/hooks/useMount"; | ||
import { LayoutDefault } from "~/layouts"; | ||
import { AllDonePanel } from "~/components/AllDonePanel"; | ||
import { HowEOWorks } from "~/components/HowEOWorks"; | ||
import { FAQs } from "~/components/FAQs"; | ||
import { HowEOWorks } from "~/components/HowEOWorks"; | ||
import { useMount } from "~/hooks/useMount"; | ||
import { LayoutDefault } from "~/layouts"; | ||
import { FooterFull } from "~/layouts/FooterFull"; | ||
import { useProfilingStore } from "~/stores/useProfilingStore"; | ||
import { useSurveyStore } from "~/stores/useSurveyStore"; | ||
|
||
|
||
export const CancerSurveyThankYou = () => { | ||
const [searchParams] = useSearchParams(); | ||
|
||
const usePayment = useProfilingStore((s) => s.usePayment); | ||
const { email, phase } = useSurveyStore(); | ||
const { usePayment } = useProfilingStore(); | ||
|
||
const submission_id = searchParams.get("submission_id") ?? ""; | ||
|
||
|
@@ -44,23 +46,24 @@ export const CancerSurveyThankYou = () => { | |
}, | ||
}); | ||
|
||
useMount(() => mutate({ submission_id })); | ||
useMount(() => mutate({ email, phase, submission_id })); | ||
|
||
return ( | ||
<LayoutDefault> | ||
<AllDonePanel> | ||
<Typography | ||
variant="base" | ||
font="regular" | ||
className="text-center text-[22px] font-normal leading-[36px] max-w-xl" | ||
className="max-w-xl text-center text-[22px] font-normal leading-[36px]" | ||
> | ||
We received your feedback! <br /> | ||
<br /> | ||
Thank you! <br /> | ||
<br /> | ||
Have questions? Weβre here. Email [email protected], call <a href="tel:+1-877-707-0706">877-707-0706</a>, or {" "} | ||
Have questions? Weβre here. Email [email protected], call{" "} | ||
<a href="tel:+1-877-707-0706">877-707-0706</a>, or{" "} | ||
<a | ||
className="cursor-pointer underline font-new-hero text-[22px]" | ||
className="cursor-pointer font-new-hero text-[22px] underline" | ||
href="https://eo-care-telemed.as.me/schedule.php" | ||
target="_blank" | ||
> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.