Skip to content

Commit

Permalink
Update ShowOnSignup.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza authored Jul 1, 2024
1 parent 3a13a2d commit a361ec1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/common/components/ShowOnSignup.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Avatar, Box, Button, useColorModeValue, useToast } from '@chakra-ui/react';
import { Avatar, Box, Button, useColorModeValue } from '@chakra-ui/react';
import { useEffect, useState } from 'react';
import useTranslation from 'next-translate/useTranslation';
import { useRouter } from 'next/router';
Expand All @@ -12,7 +12,6 @@ import useStyle from '../hooks/useStyle';
import modifyEnv from '../../../modifyEnv';
import { setStorageItem } from '../../utils';
import ModalInfo from '../../js_modules/moduleMap/modalInfo';
import bc from '../services/breathecode';
import useSubscribeToPlan from '../hooks/useSubscribeToPlan';
import { error } from '../../utils/logging';

Expand All @@ -33,13 +32,11 @@ function ShowOnSignUp({
const { handleSubscribeToPlan } = useSubscribeToPlan();
const { backgroundColor, featuredColor, hexColor } = useStyle();
const [showAlreadyMember, setShowAlreadyMember] = useState(false);
const [verifyEmailProps, setVerifyEmailProps] = useState({});
const [alreadyLogged, setAlreadyLogged] = useState(false);
const [attempts, setAttempts] = useState(0);
const { t } = useTranslation('signup');
const [isReadyToRefetch, setIsReadyToRefetch] = useState(false);
const router = useRouter();
const toast = useToast();
const [formProps, setFormProps] = useState({
first_name: '',
last_name: '',
Expand Down Expand Up @@ -136,7 +133,6 @@ function ShowOnSignUp({
columnLayout
showLoginLink
invertHandlerPosition={invertHandlerPosition}
showVerifyEmail={false}
formProps={formProps}
setFormProps={setFormProps}
subscribeValues={subscribeValues}
Expand All @@ -149,10 +145,6 @@ function ShowOnSignUp({
setIsReadyToRefetch(true);
setAlreadyLogged(true);
refetchAfterSuccess();
setVerifyEmailProps({
data,
state: true,
});
}
});
}}
Expand Down

0 comments on commit a361ec1

Please sign in to comment.