Skip to content

Commit

Permalink
enhance code block in portal with new parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 31, 2019
1 parent 3696aef commit 132b057
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class LiveCode extends PureComponent {
const { hideToolbar, hideCode, hidePreview } = this.state

const props = Object.entries(rest).reduce((acc, [key, value]) => {
if (!['hideCode', 'hidePreview'].includes(key)) {
if (!['hideCode', 'hidePreview', 'hideToolbar'].includes(key)) {
acc[key] = value
}
return acc
Expand Down Expand Up @@ -162,7 +162,7 @@ class LiveCode extends PureComponent {
)}
</Toolbar>
)}
{!hideCode && <LiveEditor language="jsx" />}
{!hideCode && <LiveEditor language="jsx" ignoreTabKey />}
{!hideCode && (
<LiveError className="dnb-form-status dnb-form-status--text dnb-form-status--error" />
)}
Expand Down

0 comments on commit 132b057

Please sign in to comment.