Skip to content

Commit

Permalink
hideTryItPanel optional param
Browse files Browse the repository at this point in the history
  • Loading branch information
melissag-ensemble committed Mar 20, 2024
1 parent d71ce67 commit eef5338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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.7",
"version": "4.11.8-rc6",
"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 @@ -23,7 +23,8 @@ const RedoclyAPIBlock = ({
typography = 'fontFamily: `adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif`',
codeBlock = "tokens: { punctuation: { color: 'white' }}",
disableSidebar = false,
disableSearch = false
disableSearch = false,
hideTryItPanel = false,
}) => {
const [isRedoclyLoading, setIsRedoclyLoading] = useState(true);

Expand Down Expand Up @@ -62,6 +63,7 @@ const RedoclyAPIBlock = ({
{licenseKey: '${licenseKey}',
disableSidebar: ${disableSidebar},
disableSearch: ${disableSearch},
hideTryItPanel: ${hideTryItPanel},
hideLoading: true,
theme: {
${typography ? "typography: { " + typography + "}," : ''}
Expand All @@ -87,6 +89,7 @@ RedoclyAPIBlock.propTypes = {
codeBlock: PropTypes.string,
disableSidebar: PropTypes.bool,
disableSearch: PropTypes.bool,
hideTryItPanel: PropTypes.bool,
};

export { RedoclyAPIBlock };

0 comments on commit eef5338

Please sign in to comment.