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:
Adrien Becchis
2020-10-02 23:44:46 +02:00
committed by GitHub
parent a920357c22
commit b5e8081115
6 changed files with 10 additions and 3 deletions

View File

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