feat: Dashboar sidebar styled.

This commit is contained in:
Ahmed Bouhuolia
2020-03-26 16:41:22 +02:00
parent c7db1394e7
commit 6c4f86431c
4 changed files with 32 additions and 24 deletions

View File

@@ -143,6 +143,7 @@ export default class MenuItem extends AbstractPureComponent2 {
textClassName,
tagName = "a",
dropdownType,
caretIconSize = 16,
...htmlProps
} = this.props;
const hasSubmenu = children != null;
@@ -181,7 +182,7 @@ export default class MenuItem extends AbstractPureComponent2 {
{text}
</Text>,
this.maybeRenderLabel(labelElement),
hasSubmenu ? <Icon icon="caret-right" /> : undefined,
hasSubmenu ? <Icon icon="caret-right" iconSize={caretIconSize} /> : undefined,
);
const liClasses = classNames({ [Classes.MENU_SUBMENU]: hasSubmenu });