Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { onSideBarItemClick } = this;
const { name, docsUrlPart } = sidePanelItems[selectedPane];
return dom.div(
{
className: "landing-page"
},
Sidebar({
supportsFirefox,
supportsChrome,
title,
selectedPane,
onSideBarItemClick
}),
dom.main(
{ className: "launchpad-panel" },
this.renderPanel(),
firstTimeMessage(name, docsUrlPart)
)
);
}
}
render() {
const {
addInput,
changeCurrentInput,
clearExpressions,
currentInputValue,
evaluateInput,
expressions,
hideResultPacket,
navigateInputHistory,
showResultPacket
} = this.props;
return dom.main(
{},
Header({
addInput,
changeCurrentInput,
clearResultsList: clearExpressions,
currentInputValue,
evaluate: evaluateInput,
navigateInputHistory
}),
ResultsList({
expressions: expressions.reverse(),
hideResultPacket,
showResultPacket
})
);
}
let {
addInput,
changeCurrentInput,
clearExpressions,
currentInputValue,
evaluateInput,
expressions,
hideResultPacket,
navigateInputHistory,
showResultPacket,
createObjectClient,
createLongStringClient,
releaseActor,
} = this.props;
return dom.main(
{},
Header({
addInput,
changeCurrentInput,
clearResultsList: clearExpressions,
currentInputValue,
evaluate: evaluateInput,
navigateInputHistory,
}),
ResultsList({
expressions: expressions.reverse(),
hideResultPacket,
showResultPacket,
createObjectClient,
createLongStringClient,
releaseActor,