Skip to content

Commit

Permalink
Merge pull request #9 from bunsy-0900/bug/ES-676
Browse files Browse the repository at this point in the history
ES-676: Signup UI - Missing imports during moving repo to public
  • Loading branch information
ase-101 authored Jan 16, 2024
2 parents 8b00734 + 3caa7d2 commit 8e28fcc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions signup-ui/src/app/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
UNDER_CONSTRUCTION,
} from "~constants/routes";
import { lazyRetry } from "~utils/lazyRetry";
import { setupResponseInterceptor } from "~services/api.service";

const SignUpPage = lazy(() => lazyRetry(() => import("~pages/SignUpPage")));
const ResetPasswordPage = lazy(() =>
Expand Down
22 changes: 14 additions & 8 deletions signup-ui/src/pages/SignUpPage/AccountSetup/AccountSetup.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { KeyboardEvent, useCallback, useMemo, useState } from "react";
import { PopoverTrigger } from "@radix-ui/react-popover";
import { UseFormReturn } from "react-hook-form";
import { useTranslation } from "react-i18next";
import { Trans, useTranslation } from "react-i18next";

import { Button } from "~components/ui/button";
import { Checkbox } from "~components/ui/checkbox";
Expand Down Expand Up @@ -63,7 +63,7 @@ export const AccountSetup = ({ settings, methods }: AccountSetupProps) => {

const { registerMutation } = useRegister();
const [openTermConditionModal, setOpenTermConditionModal] = useState(false);
const [modalData, setModalData] = useState({title: "", content: ""});
const [modalData, setModalData] = useState({ title: "", content: "" });

const disabledContinue =
!isValid ||
Expand Down Expand Up @@ -121,20 +121,26 @@ export const AccountSetup = ({ settings, methods }: AccountSetupProps) => {

const onModalToggle = () => {
setOpenTermConditionModal(false);
setModalData({title: "", content: ""});
}
setModalData({ title: "", content: "" });
};

const onOpenTerm = (e: any) => {
e.preventDefault();
setModalData({title: t("terms_and_conditions_title"), content: t("terms_and_conditions_content")});
setModalData({
title: t("terms_and_conditions_title"),
content: t("terms_and_conditions_content"),
});
setOpenTermConditionModal(true);
}
};

const onOpenPrivacy = (e: any) => {
e.preventDefault();
setModalData({title: t("privacy_and_policy_title"), content: t("privacy_and_policy_content")});
setModalData({
title: t("privacy_and_policy_title"),
content: t("privacy_and_policy_content"),
});
setOpenTermConditionModal(true);
}
};

const handleFullNameInput = (event: KeyboardEvent<HTMLInputElement>) =>
handleInputFilter(
Expand Down

0 comments on commit 8e28fcc

Please sign in to comment.