@@ -448,48 +448,18 @@ export const InstallScreen: FunctionComponent<InstallScreenProps> = ({
448448 onChange = { handleAcknowledgmentChange }
449449 > </ Checkbox >
450450 ) : null }
451- < Text > { copy . policiesAndTerms } </ Text >
451+ < Small color = "secondary60" > { copy . policiesAndTerms } </ Small >
452452 </ Flex >
453- < Form fullWidth onSubmit = { onSubmit } >
454- < FormGroup >
455- < Grid
456- gridColumns = { { mobile : "1fr 1fr" , desktop : "1fr" } }
457- gridGap = "1rem"
458- >
459- < GridItem display = { { mobile : "grid" , desktop : "none" } } >
460- < Button
461- type = "button"
462- variant = "secondary"
463- onClick = { cancelButtonHandler }
464- >
465- { copy . cancel }
466- </ Button >
467- </ GridItem >
468- < Button
469- type = "button"
470- variant = "primary"
471- marginBottom = { { mobile : "none" , desktop : "medium" } }
472- onClick = { onInstallButtonClick }
473- isLoading = { isLoading }
474- disabled = { disableInstallButton || ( app . requireAcknowledgment && ! acknowledged ) }
475- >
476- { copy . install }
477- </ Button >
478- </ Grid >
479- </ FormGroup >
480- </ Form >
481- </ StyledMovingBlock >
482- { /* Scopes */ }
483- < GridItem >
453+ { /* Scopes */ }
484454 { app . scopesAllowed && app . scopesAllowed . length > 0 ? (
485455 < Box marginBottom = "medium" >
486- < Text marginBottom = "small" > { copy . scopesAllowed } </ Text >
456+ < Small color = "secondary60" marginBottom = "small" > { copy . scopesAllowed } </ Small >
487457 < StyledScopes >
488458 { app . scopesAllowed . map (
489459 ( permission : string , index : number ) => (
490460 < li key = { index } >
491461 < Flex
492- alignItems = { { mobile : "start " } }
462+ alignItems = { { mobile : "center " } }
493463 flexDirection = { { mobile : "row" } }
494464 >
495465 < CheckIcon color = "success" aria-hidden = "true" />
@@ -504,14 +474,14 @@ export const InstallScreen: FunctionComponent<InstallScreenProps> = ({
504474 </ Box >
505475 ) : null }
506476 { app . scopesDenied && app . scopesDenied . length > 0 ? (
507- < Box >
508- < Text marginBottom = "small " > { copy . scopesDenied } </ Text >
477+ < Box marginBottom = "medium" >
478+ < Small color = "secondary60" marginBottom = "xSmall " > { copy . scopesDenied } </ Small >
509479 < StyledScopes >
510480 { app . scopesDenied . map (
511481 ( denial : string , index : number ) => (
512482 < li key = { index } >
513483 < Flex
514- alignItems = { { mobile : "start " } }
484+ alignItems = { { mobile : "center " } }
515485 flexDirection = { { mobile : "row" } }
516486 >
517487 < CloseIcon color = "danger" aria-hidden = "true" />
@@ -523,7 +493,36 @@ export const InstallScreen: FunctionComponent<InstallScreenProps> = ({
523493 </ StyledScopes >
524494 </ Box >
525495 ) : null }
526- </ GridItem >
496+ { /* Cancel & install buttons */ }
497+ < Form marginTop = "xLarge" fullWidth onSubmit = { onSubmit } >
498+ < FormGroup >
499+ < Grid
500+ gridColumns = { { mobile : "1fr 1fr" , desktop : "1fr" } }
501+ gridGap = "1rem"
502+ >
503+ < GridItem display = { { mobile : "grid" , desktop : "none" } } >
504+ < Button
505+ type = "button"
506+ variant = "secondary"
507+ onClick = { cancelButtonHandler }
508+ >
509+ { copy . cancel }
510+ </ Button >
511+ </ GridItem >
512+ < Button
513+ type = "button"
514+ variant = "primary"
515+ marginBottom = { { mobile : "none" , desktop : "medium" } }
516+ onClick = { onInstallButtonClick }
517+ isLoading = { isLoading }
518+ disabled = { disableInstallButton || ( app . requireAcknowledgment && ! acknowledged ) }
519+ >
520+ { copy . install }
521+ </ Button >
522+ </ Grid >
523+ </ FormGroup >
524+ </ Form >
525+ </ StyledMovingBlock >
527526 </ Grid >
528527 </ Box >
529528 { /* Mobile toggle */ }
0 commit comments