File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -51,20 +51,17 @@ export const IframePromoButton = () => {
5151 </ VisibleModal >
5252 )
5353
54- const renderIframeButton = ( ) =>
55- FEATURE_PROMO_EMBEDDED_BUTTON_TEXT && (
56- < Button
57- dataTestId = "iframe-header-button"
58- size = { ComponentSizeType . small }
59- onClick = { onClickShowIframeModal }
60- text = { FEATURE_PROMO_EMBEDDED_BUTTON_TEXT }
61- variant = { ButtonVariantType . secondary }
62- />
63- )
64-
6554 return (
6655 < div >
67- { renderIframeButton ( ) }
56+ { FEATURE_PROMO_EMBEDDED_BUTTON_TEXT && (
57+ < Button
58+ dataTestId = "iframe-header-button"
59+ size = { ComponentSizeType . small }
60+ onClick = { onClickShowIframeModal }
61+ text = { FEATURE_PROMO_EMBEDDED_BUTTON_TEXT }
62+ variant = { ButtonVariantType . secondary }
63+ />
64+ ) }
6865 { showEmbeddedIframeModal && renderIframeDrawer ( ) }
6966 </ div >
7067 )
You can’t perform that action at this time.
0 commit comments