Merge branch 'AW-141-trial-choice-button' into 'develop'
AW-141-trial-choice-button See merge request witapp/aura-webapp!239
This commit is contained in:
commit
38316b85b6
@ -17,6 +17,14 @@ import Loader from "@/components/Loader";
|
|||||||
import metricService, { EGoals } from "@/services/metric/metricService";
|
import metricService, { EGoals } from "@/services/metric/metricService";
|
||||||
import PersonalVideo from "../TrialPayment/components/PersonalVideo";
|
import PersonalVideo from "../TrialPayment/components/PersonalVideo";
|
||||||
|
|
||||||
|
enum EDisplayOptionButton {
|
||||||
|
"alwaysVisible" = "alwaysVisible",
|
||||||
|
"visibleIfChosen" = "visibleIfChosen",
|
||||||
|
}
|
||||||
|
|
||||||
|
const displayOptionButton: EDisplayOptionButton =
|
||||||
|
EDisplayOptionButton.visibleIfChosen;
|
||||||
|
|
||||||
function TrialChoicePage() {
|
function TrialChoicePage() {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -149,7 +157,19 @@ function TrialChoicePage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className={styles.email}>{email}</p>
|
<p className={styles.email}>{email}</p>
|
||||||
{!isDisabled && (
|
{!isDisabled &&
|
||||||
|
displayOptionButton === EDisplayOptionButton.visibleIfChosen && (
|
||||||
|
<QuestionnaireGreenButton
|
||||||
|
className={styles.button}
|
||||||
|
disabled={isDisabled}
|
||||||
|
onClick={handleNext}
|
||||||
|
>
|
||||||
|
{getText("text.button.1", {
|
||||||
|
color: "#1C38EA",
|
||||||
|
})}
|
||||||
|
</QuestionnaireGreenButton>
|
||||||
|
)}
|
||||||
|
{displayOptionButton === EDisplayOptionButton.alwaysVisible && (
|
||||||
<QuestionnaireGreenButton
|
<QuestionnaireGreenButton
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user