mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-24 00:19:48 -04:00
Clean
This commit is contained in:
@@ -31,9 +31,9 @@ export const initialRequiredState = {
|
||||
bio: null,
|
||||
}
|
||||
|
||||
const requiredKeys = Object.keys(
|
||||
initialRequiredState
|
||||
) as (keyof typeof initialRequiredState)[]
|
||||
// const requiredKeys = Object.keys(
|
||||
// initialRequiredState
|
||||
// ) as (keyof typeof initialRequiredState)[]
|
||||
|
||||
export const RequiredLoveUserForm = (props: {
|
||||
user: User
|
||||
@@ -46,10 +46,8 @@ export const RequiredLoveUserForm = (props: {
|
||||
onSubmit?: () => void
|
||||
loverCreatedAlready?: boolean
|
||||
}) => {
|
||||
const {user, onSubmit, loverCreatedAlready, setLover, lover, isSubmitting} =
|
||||
props
|
||||
const {updateUsername, updateDisplayName, userInfo, updateUserState} =
|
||||
useEditableUserInfo(user)
|
||||
const {user, onSubmit, loverCreatedAlready, setLover, lover, isSubmitting} = props
|
||||
const {updateUsername, updateDisplayName, userInfo, updateUserState} = useEditableUserInfo(user)
|
||||
|
||||
const {
|
||||
name,
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
import {Suspense, useEffect, useState} from "react";
|
||||
import Link from "next/link";
|
||||
import {FcGoogle} from "react-icons/fc";
|
||||
import {useSearchParams} from "next/navigation";
|
||||
import {signupThenMaybeRedirectToSignup} from "web/lib/util/signup";
|
||||
|
||||
@@ -32,7 +31,7 @@ function RegisterComponent() {
|
||||
const [error, setError] = useState<string | null>(searchParams.get('error'));
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [registrationSuccess, setRegistrationSuccess] = useState(false);
|
||||
const [registeredEmail, setRegisteredEmail] = useState('');
|
||||
const [registeredEmail, _] = useState('');
|
||||
const user = useUser()
|
||||
|
||||
// function redirect() {
|
||||
@@ -233,10 +232,10 @@ function RegisterComponent() {
|
||||
<span className="px-2 body-bg text-gray-500">Or sign up with</span>
|
||||
</div>
|
||||
</div>
|
||||
<GoogleButton onClick={signupThenMaybeRedirectToSignup} isLoading={isLoading} />
|
||||
<GoogleButton onClick={signupThenMaybeRedirectToSignup} isLoading={isLoading}/>
|
||||
</div>
|
||||
</form>
|
||||
<div className="my-8" />
|
||||
<div className="my-8"/>
|
||||
<div className="text-center customlink">
|
||||
<p className="">
|
||||
Already have an account?{' '}
|
||||
|
||||
Reference in New Issue
Block a user