From c862d2c148742abf1c35f40a0befb980da807d80 Mon Sep 17 00:00:00 2001 From: Dickson Law <dickson.law@utoronto.ca> Date: Thu, 8 Jul 2021 17:46:25 -0400 Subject: [PATCH] Fix justify error Replaced the lines responsible for this error: ``` Warning: Failed prop type: The prop `justify` of `ForwardRef(Grid)` is deprecated. Use `justifyContent` instead, the prop was renamed. ``` --- src/components/ManifestListItemError.js | 4 ++-- src/components/SelectCollection.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ManifestListItemError.js b/src/components/ManifestListItemError.js index fd37247bc..a6a3fb43a 100644 --- a/src/components/ManifestListItemError.js +++ b/src/components/ManifestListItemError.js @@ -23,7 +23,7 @@ export class ManifestListItemError extends Component { <Grid container> <Grid container item xs={12} sm={6}> <Grid item xs={4} sm={3}> - <Grid container justify="center"> + <Grid container justifyContent="center"> <ErrorIcon className={classes.errorIcon} /> </Grid> </Grid> @@ -35,7 +35,7 @@ export class ManifestListItemError extends Component { </Grid> <Grid container> - <Grid container item xs={12} sm={6} justify="flex-end"> + <Grid container item xs={12} sm={6} justifyContent="flex-end"> <Grid item> <Button onClick={() => { onDismissClick(manifestId); }}> {t('dismiss')} diff --git a/src/components/SelectCollection.js b/src/components/SelectCollection.js index decfdf6de..aeb98e712 100644 --- a/src/components/SelectCollection.js +++ b/src/components/SelectCollection.js @@ -30,7 +30,7 @@ export class SelectCollection extends Component { t, } = this.props; return ( - <Grid container justify="center" alignItems="center"> + <Grid container justifyContent="center" alignItems="center"> <Grid container direction="column" alignItems="center"> <Typography variant="h4" paragraph> <em> -- GitLab