Skip to content

Commit

Permalink
pass as string
Browse files Browse the repository at this point in the history
  • Loading branch information
melissag-ensemble committed Jun 19, 2024
1 parent 6707133 commit 61931b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/gatsby-theme-aio",
"version": "4.11.15",
"version": "4.11.16-rc1",
"description": "The Adobe I/O theme for building markdown powered sites",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const RedoclyAPIBlock = ({
hideTryItPanel = false,
jsonSampleExpandLevel = 2,
generateCodeSamples = 'languages: [], skipOptionalParameters: false,',
requestInterceptor = '',
}) => {
const [isRedoclyLoading, setIsRedoclyLoading] = useState(true);

Expand Down Expand Up @@ -69,6 +70,7 @@ const RedoclyAPIBlock = ({
hideTryItPanel: ${hideTryItPanel},
jsonSampleExpandLevel: ${jsonSampleExpandLevel === all ? `'${jsonSampleExpandLevel}'` : jsonSampleExpandLevel},
${generateCodeSamples ? "generateCodeSamples: { " + generateCodeSamples + "}," : ''}
${requestInterceptor ? "requestInterceptor: " + requestInterceptor + "," : ''}
hideLoading: true,
theme: {
${typography ? "typography: { " + typography + "}," : ''}
Expand Down Expand Up @@ -100,6 +102,7 @@ RedoclyAPIBlock.propTypes = {
PropTypes.number,
]),
generateCodeSamples: PropTypes.string,
requestInterceptor: PropTypes.string,
};

export { RedoclyAPIBlock };

0 comments on commit 61931b8

Please sign in to comment.