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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard Layout Example : theme.spacing is not a function #15834

Closed
2 tasks done
jfloodnet opened this issue May 24, 2019 · 2 comments 路 Fixed by #15845
Closed
2 tasks done

Dashboard Layout Example : theme.spacing is not a function #15834

jfloodnet opened this issue May 24, 2019 · 2 comments 路 Fixed by #15845
Labels
docs Improvements or additions to the documentation good first issue Great for first contributions. Enable to learn the contribution process.

Comments

@jfloodnet
Copy link

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 馃

Sample should work without making changes

Current Behavior 馃槸

The error theme.spacing is not a function occurs.

Need to change this line from material-ui/styles to material-ui/core/styles
https://github.com/mui-org/material-ui/blob/master/docs/src/pages/getting-started/page-layout-examples/dashboard/Orders.js#L5

@merceyz
Copy link
Member

merceyz commented May 24, 2019

Yeah, that's a mistake. Do you want to create a PR with your proposed fix?

@oliviertassinari oliviertassinari added good first issue Great for first contributions. Enable to learn the contribution process. docs Improvements or additions to the documentation labels May 24, 2019
@hinsxd
Copy link
Contributor

hinsxd commented May 24, 2019

I encounter this too. Can someone clarify what is the use of material-ui/styles/makeStyles?--

Edit: I found out https://material-ui.com/customization/default-theme/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation good first issue Great for first contributions. Enable to learn the contribution process.
Projects
None yet
4 participants