Skip to content

Commit

Permalink
moved svg and removed commented service
Browse files Browse the repository at this point in the history
  • Loading branch information
Aamil13 committed Sep 23, 2024
1 parent 4c141ed commit b0cea78
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 36 deletions.
8 changes: 8 additions & 0 deletions src/assets/blueBGTick.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import LoginButtons from '@/components/atoms/LoginButtons'
import OTPInput from '@/components/atoms/OTP-Input/OTP_Input'
import SupportingText from '@/components/atoms/SupportingText'
import { useHandleUniversityEmailVerificationGenerate } from '@/services/auth'

import blueTick from '@/assets/blueBGTick.svg'
import React from 'react'
import { Controller, useFormContext } from 'react-hook-form'
import Image from 'next/image'

interface props {
setStep: (value: number) => void
Expand Down Expand Up @@ -44,36 +45,18 @@ const UniversityVerificationForm = ({ setStep, setSubStep, isVerificationSuccess
</div>
<div>
<div className="flex gap-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.9996 20.4001C16.6388 20.4001 20.3996 16.6393 20.3996 12.0001C20.3996 7.36091 16.6388 3.6001 11.9996 3.6001C7.36042 3.6001 3.59961 7.36091 3.59961 12.0001C3.59961 16.6393 7.36042 20.4001 11.9996 20.4001ZM15.8921 10.6426C16.3021 10.2325 16.3021 9.56769 15.8921 9.15764C15.482 8.74758 14.8172 8.74758 14.4071 9.15764L10.9496 12.6152L9.59207 11.2576C9.18202 10.8476 8.5172 10.8476 8.10715 11.2576C7.6971 11.6677 7.6971 12.3325 8.10715 12.7426L10.2071 14.8426C10.6172 15.2526 11.282 15.2526 11.6921 14.8426L15.8921 10.6426Z"
fill="#6744FF"
/>
</svg>
<Image src={blueTick} width={24} height={24} alt="tick" />

<p className="text-sm text-neutral-600 text-center">Can join private groups in university community</p>
</div>
<div className="flex gap-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.9996 20.4001C16.6388 20.4001 20.3996 16.6393 20.3996 12.0001C20.3996 7.36091 16.6388 3.6001 11.9996 3.6001C7.36042 3.6001 3.59961 7.36091 3.59961 12.0001C3.59961 16.6393 7.36042 20.4001 11.9996 20.4001ZM15.8921 10.6426C16.3021 10.2325 16.3021 9.56769 15.8921 9.15764C15.482 8.74758 14.8172 8.74758 14.4071 9.15764L10.9496 12.6152L9.59207 11.2576C9.18202 10.8476 8.5172 10.8476 8.10715 11.2576C7.6971 11.6677 7.6971 12.3325 8.10715 12.7426L10.2071 14.8426C10.6172 15.2526 11.282 15.2526 11.6921 14.8426L15.8921 10.6426Z"
fill="#6744FF"
/>
</svg>
<Image src={blueTick} width={24} height={24} alt="tick" />

<p className="text-sm text-neutral-600 text-center">Can join more than 1 university community</p>
</div>
<div className="flex gap-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.9996 20.4001C16.6388 20.4001 20.3996 16.6393 20.3996 12.0001C20.3996 7.36091 16.6388 3.6001 11.9996 3.6001C7.36042 3.6001 3.59961 7.36091 3.59961 12.0001C3.59961 16.6393 7.36042 20.4001 11.9996 20.4001ZM15.8921 10.6426C16.3021 10.2325 16.3021 9.56769 15.8921 9.15764C15.482 8.74758 14.8172 8.74758 14.4071 9.15764L10.9496 12.6152L9.59207 11.2576C9.18202 10.8476 8.5172 10.8476 8.10715 11.2576C7.6971 11.6677 7.6971 12.3325 8.10715 12.7426L10.2071 14.8426C10.6172 15.2526 11.282 15.2526 11.6921 14.8426L15.8921 10.6426Z"
fill="#6744FF"
/>
</svg>
<Image src={blueTick} width={24} height={24} alt="tick" />

<p className="text-sm text-neutral-600 text-center">Can create groups in university community </p>
</div>
</div>
Expand Down
11 changes: 0 additions & 11 deletions src/services/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,6 @@ export const useHandleRegister_v2 = () => {
})
}

// export const useHandleUserEmailAndUserNameAvailability = () => {
// return useMutation({
// mutationFn: (data: any) => userNameAndEmailAvailability(data),
// onSuccess: (res: any) => {
// console.log(res)
// },
// onError: (res: any) => {
// console.log(res.response.data, 'res')
// },
// })
// }
export const useHandleUserEmailAndUserNameAvailability = () => {
return useMutation({
mutationFn: (data: { email: string; userName: string }) => userNameAndEmailAvailability(data),
Expand Down

0 comments on commit b0cea78

Please sign in to comment.