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

fix signin & signup #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix signin & signup #9

wants to merge 2 commits into from

Conversation

tobyleye
Copy link

@tobyleye tobyleye commented Dec 1, 2021

My apologies for not giving context as to why this pr was raised.

The authentication pages i.e signup & login are not user friendly atm. The Get Started button on the header takes user to a /login route and renders a login form. I understand there's a logic that conditionally renders the login/signup form based on a local boolean state but it isn't tied to the Get Started button.

So this pr was raised in order to separate these two pages and properly link them

I look forward to your review & feedback. Thank you.
@panshak

@netlify
Copy link

netlify bot commented Dec 1, 2021

👷 Deploy request for arcinvoice pending review.
Visit the deploys page to approve it

🔨 Explore the source changes: 4457249

@panshak
Copy link
Owner

panshak commented Dec 7, 2021

@tobyleye sounds great!
Thanks for this.
I'm going to test the pr


const googleError = (error) => {
console.log(error);
console.log("Google Sign In was unseccassful. Try again later");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("Google Sign In was unseccassful. Try again later");
console.log("Google Sign In was unsuccessful. Try again later.");

const [isLoading, setIsLoading] = useState(false);

const googleSuccess = async (res) => {
console.log(res);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is best if we dont leave console.logs in our code.

Copy link

@iamfeek iamfeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I briefly looked through it and commented on the things that I noticed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants