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

"theme" doesn't have the breakpoints #27

Open
jbek7 opened this issue Aug 22, 2023 · 0 comments
Open

"theme" doesn't have the breakpoints #27

jbek7 opened this issue Aug 22, 2023 · 0 comments

Comments

@jbek7
Copy link

jbek7 commented Aug 22, 2023

I'm getting an undef error for theme.breakpoints.only("xs") - theme.breakpoints is undefined. I've my Admin is configured like this:

const myLayout = () => <Layout menu={TreeMenu} />;

 <ThemeProvider theme={myTheme}>
            <Admin
                dataProvider={props.dataProvider}
                authProvider={props.authProvider}
                theme={myTheme} 
                layout={myLayout}

And I get an error:

index.js:1 MUI: The `styles` argument provided is invalid.
You are providing a function without a theme in the context.
One of the parent elements needs to use a ThemeProvider. 
    at TreeMenu (http://localhost:8088/static/js/0.chunk.js:13537:25)
    at div
----


index.js:689 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'only')
    at push../node_modules/@bb-tech/ra-components/dist/index.js.styles.makeStyles.name (index.js:689:1)
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

No branches or pull requests

1 participant