diff --git a/desktop/flipper-ui-core/src/sandy-chrome/SetupDoctorScreen.tsx b/desktop/flipper-ui-core/src/sandy-chrome/SetupDoctorScreen.tsx index 393649dac..99194c3bf 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/SetupDoctorScreen.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/SetupDoctorScreen.tsx @@ -17,7 +17,7 @@ import { QuestionCircleFilled, LoadingOutlined, } from '@ant-design/icons'; -import {Layout} from '../ui'; +import {Layout, styled} from '../ui'; import {theme} from 'flipper-plugin'; import { startHealthchecks, @@ -161,6 +161,11 @@ function HealthCheckList(props: {report: FlipperDoctor.HealthcheckReport}) { ); } +const FooterContainer = styled(Layout.Horizontal)({ + justifyContent: 'space-between', + alignItems: 'center', +}); + function SetupDoctorFooter(props: { onClose: () => void; onRerunDoctor: () => Promise; @@ -172,14 +177,15 @@ function SetupDoctorFooter(props: { return ( {props.showAcknowledgeCheckbox ? ( - props.onAcknowledgeCheck(e.target.checked)} - style={{display: 'flex', alignItems: 'center'}}> - - Do not show warning about these problems at startup - - + + props.onAcknowledgeCheck(e.target.checked)}> + + Do not show warning about these problems at startup + + + ) : ( )} diff --git a/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx b/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx index fd5e10781..ec3b4d886 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx @@ -8,7 +8,7 @@ */ import React, {cloneElement} from 'react'; -import {styled, FlexRow, FlexColumn} from '../ui'; +import {styled} from '../ui'; import {Modal, Button, Image, Checkbox, Space, Typography, Tooltip} from 'antd'; import { RocketOutlined, @@ -29,7 +29,7 @@ import {getFlipperLib} from 'flipper-plugin'; import {ReleaseChannel} from 'flipper-common'; import {showChangelog} from '../chrome/ChangelogSheet'; -const RowContainer = styled(FlexRow)({ +const RowContainer = styled(Layout.Horizontal)({ alignItems: 'flex-start', padding: `${theme.space.small}px`, cursor: 'pointer', @@ -53,19 +53,19 @@ function Row(props: { {cloneElement(props.icon, { style: {fontSize: 36, color: theme.primaryColor}, })} - + {props.title} {props.subtitle} - + ); } -const FooterContainer = styled(FlexRow)({ +const FooterContainer = styled(Layout.Horizontal)({ justifyContent: 'space-between', alignItems: 'center', });