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:
Tim Lai
2022-03-24 11:23:42 -07:00
committed by GitHub
parent cd2f434438
commit 9250e209d4
4 changed files with 150 additions and 118 deletions

View File

@@ -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}