diff --git a/src/components/ComponentExample.js b/src/components/ComponentExample.js index cbfe4e359..aa29eea43 100644 --- a/src/components/ComponentExample.js +++ b/src/components/ComponentExample.js @@ -99,6 +99,7 @@ const ComponentExample = ({ }) => { const [stylesLoaded, setStylesLoaded] = useState(false); const ToastManager = window.__NR1_SDK__.ToastManager; + const { live } = example.options; let formattedCode; try { @@ -120,9 +121,9 @@ const ComponentExample = ({ }} code={formattedCode} theme={github} - disabled={!example.options.live} + disabled={!live} > - {example.options.live && ( + {live && ( )} - + {live && } );