packages/dev-utils: add nav targets to the sidebar

This commit is contained in:
Patrik Oldsberg
2020-05-08 12:25:36 +02:00
parent 97877ca296
commit 14c551c616
+12
View File
@@ -127,6 +127,18 @@ class DevAppBuilder {
);
break;
}
case 'nav-target-component': {
const { target } = output;
sidebarItems.push(
<SidebarItem
key={target.path}
to={target.path}
text={target.title}
icon={target.icon}
/>,
);
break;
}
default:
break;
}