Skip to content

Commit

Permalink
Add and disable javascript console #219
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Apr 24, 2020
1 parent edefab0 commit ddc81fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions geppetto-showcase/components/drawer/DrawerContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ class DrawerContent extends Component {
name: 'Python Console',
component: <PythonConsoleShowcase />,
},
// {
// name: 'Javascript Console',
// component: <PythonConsoleShowcase />,
// },
{
name: 'Javascript Console',
component: '<JavascriptConsoleShowcase />',
disabled: true,
},
],
},
};
Expand All @@ -166,12 +167,14 @@ class DrawerContent extends Component {
{children.map((value) => {
const name = value.name;
const component = value.component;
const disabled = value.disabled;
return (
<ListItem
key={value.name}
button
className={classes.nested}
onClick={() => contentHandler(component)}
disabled={disabled}
>
<ListItemText
className={classes.listText}
Expand Down

0 comments on commit ddc81fd

Please sign in to comment.