You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After following the instructions in the README (setting up ThemeProvider), this does not work:
import*asReactfrom'react'import{Layout}from'react-toolbox/lib/layout/Layout'import{NavDrawer}from'react-toolbox/lib/layout/NavDrawer'import{Panel}from'react-toolbox/lib/layout/Panel'exportdefaultfunction({ children }){return(<Layout><NavDrawer>[nav here]</NavDrawer><Panel>{children}</Panel></Layout>)}
However, this works / renders correctly:
import*asReactfrom'react'import{Layout}from'react-toolbox/lib/layout/Layout'import{NavDrawer}from'react-toolbox/lib/layout/NavDrawer'import{Panel}from'react-toolbox/lib/layout/Panel'import*asthemefrom'../react-toolbox/theme'exportdefaultfunction({ children }){return(<Layouttheme={theme}><NavDrawertheme={theme}>[nav here]</NavDrawer><Paneltheme={theme}>{children}</Panel></Layout>)}
It seems to only affect Layout components - at least AppBar and Button does not have this issue.
The text was updated successfully, but these errors were encountered:
After following the instructions in the README (setting up
ThemeProvider
), this does not work:However, this works / renders correctly:
It seems to only affect
Layout
components - at leastAppBar
andButton
does not have this issue.The text was updated successfully, but these errors were encountered: