This repository was archived by the owner on Jun 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Material-UI error on Nav Drawer classes customization #34
Copy link
Copy link
Open
Description
Hello,
I am customizing the Drawer of the Nav component. I'am doing simply :
import { Nav } from 'mui-layout';
<Nav
classes={{
container: navClasses.container,
paper: navClasses.paper,
paperAnchorDockedLeft: navClasses.paperAnchorDockedLeft,
}}
>
This is working fine since Nav is doing :
<Drawer
{...props}
className={`${className} ${classes.root}`}
open={opened}
onClose={() => setOpened(false)}
variant={navVariant}
anchor={navAnchor}
>
My only problem is : Material-UI is printing me some errors in console :
Material-UI: the key `container` provided to the classes prop is not implemented in ForwardRef(Drawer).
You can only override one of the following: root,docked,paper,paperAnchorLeft,paperAnchorRight,paperAnchorTop,paperAnchorBottom,paperAnchorDockedLeft,paperAnchorDockedTop,paperAnchorDockedRight,paperAnchorDockedBottom,modal
Or
Material-UI: the key `container` provided to the classes prop is not implemented in ForwardRef(Drawer).
You can only override one of the following: root,docked,paper,paperAnchorLeft,paperAnchorRight,paperAnchorTop,paperAnchorBottom,paperAnchorDockedLeft,paperAnchorDockedTop,paperAnchorDockedRight,paperAnchorDockedBottom,modal.
Am I doing something wrong ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels