fix: edits

This commit is contained in:
gofnnp 2023-11-26 02:59:15 +04:00
parent 2a59a7e597
commit e8cc034e92
4 changed files with 23 additions and 4 deletions

View File

@ -379,8 +379,10 @@ function PrivateOutlet(): JSX.Element {
} }
function PrivateSubscriptionOutlet(): JSX.Element { function PrivateSubscriptionOutlet(): JSX.Element {
// const isProduction = import.meta.env.MODE === "production"; const isProduction = import.meta.env.MODE === "production";
const isProduction = false; console.log("####: isProduction", isProduction);
// const isProduction = false;
const status = useSelector(selectors.selectStatus); const status = useSelector(selectors.selectStatus);
return status === "subscribed" || !isProduction ? ( return status === "subscribed" || !isProduction ? (
<Outlet /> <Outlet />

View File

@ -32,6 +32,7 @@ function BirthdayPage(): JSX.Element {
value={birthdate} value={birthdate}
onValid={handleValid} onValid={handleValid}
onInvalid={() => setIsDisabled(true)} onInvalid={() => setIsDisabled(true)}
inputClassName='date-picker-input'
/> />
<MainButton onClick={handleNext} disabled={isDisabled}> <MainButton onClick={handleNext} disabled={isDisabled}>
{t('next')} {t('next')}

View File

@ -97,3 +97,15 @@
border: 2px solid #dee5f9; border: 2px solid #dee5f9;
padding-top: 5px; padding-top: 5px;
} }
@media screen and (max-width: 370px) {
.date-picker__container {
display: flex;
flex-direction: column;
gap: 12px;
}
.date-picker-input {
width: 100%;
}
}

View File

@ -59,7 +59,10 @@ function SpecialWelcomeOffer({ open, onClose }: ModalTopProps): JSX.Element {
{Number(halfPrice) > 0 && {Number(halfPrice) > 0 &&
<> <>
<span className={styles["red-price"]}>${selectedPrice}</span>{" "} <span className={styles["red-price"]}>${selectedPrice}</span>{" "}
<span className={styles["price"]}>${halfPrice}</span> <span className={styles["price"]}>
{/* ${halfPrice} */}
$1
</span>
</> </>
} }
{!Number(halfPrice) && <span className={styles["free-trial"]}>{t('au.free_trial_web.7_14')}</span>} {!Number(halfPrice) && <span className={styles["free-trial"]}>{t('au.free_trial_web.7_14')}</span>}
@ -68,7 +71,8 @@ function SpecialWelcomeOffer({ open, onClose }: ModalTopProps): JSX.Element {
className={styles["button-green"]} className={styles["button-green"]}
onClick={handleNext} onClick={handleNext}
> >
$ {halfPrice} {t("au.try_for.button")} {/* $ {halfPrice} */}
{t("au.try_for.button")}
</MainButton> </MainButton>
<MainButton <MainButton
// disabled // disabled