fix(syntax-highlighter): configuration for Examples (#6455)
* Complement #5259, getConfigs was not correctly forwarded to Examples. As a result, syntax highlight could not be disabled be disabled or configured in that elements
This commit is contained in:
@@ -250,6 +250,7 @@ const RequestBody = ({
|
||||
example={
|
||||
<HighlightCode
|
||||
className="body-param__example"
|
||||
getConfigs={getConfigs}
|
||||
value={stringify(requestBodyValue) || getDefaultRequestBodyValue(
|
||||
requestBody,
|
||||
contentType,
|
||||
@@ -266,6 +267,7 @@ const RequestBody = ({
|
||||
<Example
|
||||
example={examplesForMediaType.get(activeExamplesKey)}
|
||||
getComponent={getComponent}
|
||||
getConfigs={getConfigs}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user