Remove useless StepSelection component

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-05-28 13:04:35 +02:00
parent 95ff5c98a8
commit 6db0172a50
2 changed files with 24 additions and 31 deletions

View File

@ -36,7 +36,6 @@ import { scanner as driveScanner } from '../../modules/drive-scanner';
import * as imageWriter from '../../modules/image-writer';
import * as progressStatus from '../../modules/progress-status';
import * as notification from '../../os/notification';
import { StepSelection } from '../../styled-components';
const COMPLETED_PERCENTAGE = 100;
const SPEED_PRECISION = 2;
@ -261,8 +260,7 @@ export class FlashStep extends React.PureComponent<
/>
</div>
<div className="space-vertical-large">
<StepSelection>
<div className="space-vertical-large" style={{ display: 'flex' }}>
<ProgressButton
type={this.props.step}
active={this.props.isFlashing}
@ -287,7 +285,6 @@ export class FlashStep extends React.PureComponent<
hoverIndicator={{ dark: true }}
/>
)}
</StepSelection>
{!_.isNil(this.props.speed) &&
this.props.percentage !== COMPLETED_PERCENTAGE && (

View File

@ -123,10 +123,6 @@ export const StepNameButton = styled(Button)`
}
}
`;
export const StepSelection = styled(Flex)`
flex-wrap: wrap;
justify-content: center;
`;
export const Footer = styled(Txt)`
margin-top: 10px;
color: ${colors.dark.disabled.foreground};