Replace <React.Fragment> with <>

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-01-15 17:22:10 +01:00
parent d633b36b23
commit 77ece044ad
3 changed files with 8 additions and 8 deletions

View File

@ -321,7 +321,7 @@ export class ImageSelector extends React.Component<
const imageSize = selectionState.getImageSize();
return (
<React.Fragment>
<>
<div className="box text-center relative">
<Dropzone multiple={false} onDrop={this.handleOnDrop}>
{({ getRootProps, getInputProps }) => (
@ -337,7 +337,7 @@ export class ImageSelector extends React.Component<
<div className="space-vertical-large">
{hasImage ? (
<React.Fragment>
<>
<StepNameButton
plain
onClick={this.showSelectedImageDetails}
@ -353,7 +353,7 @@ export class ImageSelector extends React.Component<
<DetailsText>
{shared.bytesToClosestUnit(imageSize)}
</DetailsText>
</React.Fragment>
</>
) : (
<StepSelection>
<StepButton onClick={this.openImageSelector}>
@ -407,7 +407,7 @@ export class ImageSelector extends React.Component<
{selectionState.getImagePath()}
</Modal>
)}
</React.Fragment>
</>
);
}
}

View File

@ -98,10 +98,10 @@ export const DriveSelector = ({
return (
<div className="box text-center relative">
{showStepConnectingLines && (
<React.Fragment>
<>
<StepBorder disabled={disabled} left />
<StepBorder disabled={nextStepDisabled} right />
</React.Fragment>
</>
)}
<div className="center-block">

View File

@ -219,7 +219,7 @@ export const Flash = ({ shouldFlashStepBeDisabled, goToSuccess }: any) => {
};
return (
<React.Fragment>
<>
<div className="box text-center">
<div className="center-block">
<SVGIcon
@ -308,6 +308,6 @@ export const Flash = ({ shouldFlashStepBeDisabled, goToSuccess }: any) => {
close={() => setShowDriveSelectorModal(false)}
></DriveSelectorModal>
)}
</React.Fragment>
</>
);
};