File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/patterns/src/components/InstallScreen Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " bigcommerce-design-patterns " : patch
3+ ---
4+
5+ Added disableInstallButton property to InstallScreen component
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ export interface AppType {
105105interface InstallScreenProps {
106106 backgroundSrc ?: string ;
107107 isLoading ?: boolean ;
108+ disableInstallButton ?: boolean ;
108109 showBackButton ?: boolean ;
109110 onBackButtonClick ?: ( event : React . MouseEvent ) => void ;
110111 onInstallButtonClick ?: ( event : React . MouseEvent ) => void ;
@@ -210,6 +211,7 @@ export const InstallScreen: FunctionComponent<InstallScreenProps> = ({
210211 backgroundSrc,
211212 isLoading,
212213 showBackButton = true ,
214+ disableInstallButton = false ,
213215 onBackButtonClick,
214216 onInstallButtonClick,
215217 customForm,
@@ -452,7 +454,7 @@ export const InstallScreen: FunctionComponent<InstallScreenProps> = ({
452454 marginBottom = { { mobile : "none" , desktop : "medium" } }
453455 onClick = { onInstallButtonClick }
454456 isLoading = { isLoading }
455- disabled = { app . requireAcknowledgment && ! acknowledged }
457+ disabled = { disableInstallButton || ( app . requireAcknowledgment && ! acknowledged ) }
456458 >
457459 { copy . install }
458460 </ Button >
You can’t perform that action at this time.
0 commit comments