handling collapse state in a more simple and consistence way

This commit is contained in:
Sebastian Sdorra
2020-03-31 08:26:01 +02:00
parent ca39a5b453
commit 2821005d8c
11 changed files with 178 additions and 153 deletions

View File

@@ -29,6 +29,8 @@ type Props = {
action: () => void;
};
// TODO is it used in the menu? should it use MenuContext for collapse state?
class NavAction extends React.Component<Props> {
render() {
const { label, icon, action } = this.props;