-
Notifications
You must be signed in to change notification settings - Fork 166
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
New login and signup #1117
base: master
Are you sure you want to change the base?
New login and signup #1117
Conversation
New signup
@coderatomy is creating a test VM for this PR 🚀🚀🚀 |
pre-commit checks failed ❌❌❌ |
Test VM is ready ✅✅✅ |
@NdibeRaymond is deleting test VM ... |
Test VM deleted ✅✅✅ |
@coderatomy when you have the time please fix the issues being reported by pre-commit here |
@@ -76,6 +76,8 @@ function NavBar(props) { | |||
const [searchType, setSearchType] = useState(getQueryParams(window.location.href).get('type') || SearchType.PROJECTS); | |||
const formRef = useRef(); | |||
const token = useSelector(state => state.auth.token); | |||
const pathname = props.location?.pathname | |||
const hideSearchAndActions = pathname === '/signup' || pathname === '/login'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderatomy is this part of the requirements? I think a user should be allowed access to the search box even in the signup page (since are user can search for things while not logged in)
@@ -214,32 +214,67 @@ export const setLabelWidthOfStaticFields = (refs, document, props) => { | |||
* @todo - describe object's function | |||
*/ | |||
export const validationSchema = Yup.object().shape({ | |||
role: Yup.string().required('Please choose a role'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translation
password1: Yup.string().min(8, 'min').required('required'), | ||
password2: Yup.string() | ||
.oneOf([Yup.ref('password1'), null], 'noMatch') | ||
email: Yup.string().email('invalid').required('Add your email'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translation
// return vars.email_field_touched && !value && !this.parent.phone ? false : true; | ||
// }), | ||
phone: Yup.string(), | ||
// .test('phone_is_invalid', 'invalid', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you commenting these out?
// .test('phone_is_empty', 'phoneOrEmail', function () { | ||
// return vars.phone_field_touched && !vars.iti.getNumber() && !this.parent.email ? false : true; | ||
// }), | ||
dateOfBirth: Yup.date().required('required'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this changed?
</CardActionArea> | ||
</Card> | ||
</Container> | ||
<Box width={'100%'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix this. This should either be in the styles or not at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove classes.root
?
direction="column" | ||
maxWidth={'600px'} | ||
margin={'auto'} | ||
rowSpacing={{ xs: 2, sm: 3, md: 5 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix all of this
<form onSubmit={handleSubmit}> | ||
<Grid item> | ||
<Typography align="center" className={mainClasses.header2}> | ||
Welcome to ZubHub ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you removed all the translations
Welcome to ZubHub ! | ||
</Typography> | ||
<Typography align="center" className={mainClasses.text2}> | ||
Log Into your ZubHub account to share ideas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please return the translation
handleBlur, | ||
handleSubmit, | ||
touched, | ||
} = useFormik({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless the way we were using formik before is no longer working, please use it the same way
there are more changes to make than I can possibly comment on, but let's start with these first |
pre-commit checks failed ❌❌❌ |
Summary
New auth