fix(request-snippets): prevent scrolling errors from missing function (#7941)
* fix(request-snippets): prevent scrolling errors from missing function * refactor(request-snippets): migrate to functional component * fix(curl): remove undefined prop and function * test(live-response): fix import of RequestSnippets
This commit is contained in:
@@ -21,7 +21,6 @@ export default class Curl extends React.Component {
|
||||
? <SyntaxHighlighter
|
||||
language="bash"
|
||||
className="curl microlight"
|
||||
onWheel={this.preventYScrollingBeyondElement}
|
||||
style={getStyle(get(config, "syntaxHighlight.theme"))}
|
||||
>
|
||||
{curl}
|
||||
|
||||
Reference in New Issue
Block a user