async-labs / saas

Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
https://saas-app.async-await.com
MIT License
4.06k stars 674 forks source link

[chapter 6] styleLoginButton is not defined #186

Closed michaelklem closed 1 year ago

michaelklem commented 2 years ago

Using 6-begin code, the css style styleLoginButton is not defined in the code. The docs show this:

<Button variant="contained" style={styleLoginButton} href={url}>

But this works:

<Button variant="contained" color="primary" href={url}>

klyburke commented 1 year ago

@michaelklem Thank you for reporting and good catch. This is a typo in the book text.

In the book text, we wrote <Button variant="contained" style={styleLoginButton} href={url}> in the LoginButton component.

However, in the actual code, we have <Button variant="contained" color="secondary" href={url}> in the LoginButton component.

You could also use color="primary". The style you prefer is up to you.

I will fix the typo in the book text.

Sorry for the delay in responding to this issue, as I was traveling.