diff --git a/src/core/components/curl.jsx b/src/core/components/curl.jsx
index eefce029..79909995 100644
--- a/src/core/components/curl.jsx
+++ b/src/core/components/curl.jsx
@@ -1,32 +1,30 @@
import React from "react"
import PropTypes from "prop-types"
import { CopyToClipboard } from "react-copy-to-clipboard"
-import {SyntaxHighlighter, getStyle} from "core/syntax-highlighting"
import get from "lodash/get"
import { requestSnippetGenerator_curl_bash } from "../plugins/request-snippets/fn"
export default class Curl extends React.Component {
static propTypes = {
getConfigs: PropTypes.func.isRequired,
+ getComponent: PropTypes.func.isRequired,
request: PropTypes.object.isRequired
}
render() {
- let { request, getConfigs } = this.props
+ let { request, getConfigs, getComponent } = this.props
let curl = requestSnippetGenerator_curl_bash(request)
const config = getConfigs()
+ const SyntaxHighlighter = getComponent("SyntaxHighlighter", true)
- const curlBlock = get(config, "syntaxHighlight.activated")
- ?
{value}
- }
-
+ ) : (
+ {value}
+ )}