Skip to content

Commit 049f7bb

Browse files
author
Benjamin Perez
committed
Added color to error block
1 parent 4a425f9 commit 049f7bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ObjectDetails/SetLegalHoldModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const styles = (theme: Theme) =>
1919
buttonContainer: {
2020
textAlign: "right",
2121
},
22+
errorBlock: {
23+
color: "red",
24+
},
2225
...modalBasic,
2326
});
2427

@@ -82,10 +85,10 @@ const SetLegalHoldModal = ({
8285
closeModalAndRefresh(false);
8386
}}
8487
>
88+
{error !== "" && <span className={classes.errorBlock}>{error}</span>}
8589
<Grid item xs={12} className={classes.objectName}>
8690
{objectName}
8791
</Grid>
88-
{error !== "" && <span className={classes.errorBlock}>{error}</span>}
8992
<form
9093
noValidate
9194
autoComplete="off"

0 commit comments

Comments
 (0)