Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: opened registration form #203

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 6 additions & 37 deletions src/app/register/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { useUserDetails } from '@/hooks/useUserDetails';
import CampusAmbassador from '@/components/Register/CampusAmbassador/CampusAmbassador';
import { PrimaryButton } from '@/components/shared/Typography/Buttons';
import { AuthContext } from '@/context/auth-context';
import { RegistrationModal } from './RegistrationModal';
// import { RegistrationModal } from './RegistrationModal';

function Page() {
const [userDetails, setUserDetails] = useState({
Expand Down Expand Up @@ -179,22 +179,17 @@ function Page() {
<RegisterContainer>
<Moon />

{/* //---------------------commented out google auth part--------------------- */}
{/* {isLoggedIn ? (
{isLoggedIn ? (
<RegisterInnerContainer>
<RegisterHeading>Register</RegisterHeading>
<RegisterForm>
{formFields.map((field) => {
return returnFormFields(field);
})}
</RegisterForm>
<UndertakingLink
href={undertakingContent.link}
target='_blank'

>
{undertakingContent.text}
</UndertakingLink>
<UndertakingLink href={undertakingContent.link} target='_blank'>
{undertakingContent.text}
</UndertakingLink>
<CampusAmbassador
handleChange={handleChange}
userReferral={userDetails.phone}
Expand All @@ -208,33 +203,7 @@ function Page() {
<PrimaryButton onClick={handleGoogleSignIn} disabled={authLoading}>
{authLoading ? 'Loading...' : 'Sign In with Google'}
</PrimaryButton>
)} */}
{/* //---------------------commented out google auth part--------------------- */}

<RegisterInnerContainer>
<RegisterHeading>Register</RegisterHeading>
<RegisterForm>
{formFields.map((field) => {
return returnFormFields(field);
})}
</RegisterForm>
<UndertakingLink href={undertakingContent.link} target='_blank' className=''>
{undertakingContent.text}
</UndertakingLink>
<PaymentPolicyInfo>
<Link href='/refundPolicy'>Please review the Payment Policy before registering.</Link>
</PaymentPolicyInfo>

<CampusAmbassador
handleChange={handleChange}
userReferral={userDetails.phone}
isCampusAmbassador={userDetails.campusAmbassador}
/>
<RegsiterButton onClick={handleSubmit} disabled={loading}>
Submit
</RegsiterButton>
</RegisterInnerContainer>
<RegistrationModal isOpen={isModalOpen} onClose={() => setModalOpen(false)} />
)}
</RegisterContainer>
);
}
Expand Down
Loading