Skip to content

Commit 77bcdcf

Browse files
authored
fix crash on add user to group in user details (#2523)
1 parent d713dc4 commit 77bcdcf

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

portal-ui/src/screens/Console/Users/ChangeUserGroups.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import AddMembersToGroup from "../../../icons/AddMembersToGroupIcon";
3333
import { encodeURLString } from "../../../common/utils";
3434
import { setModalErrorSnackMessage } from "../../../systemSlice";
3535
import { useAppDispatch } from "../../../store";
36+
import Box from "@mui/material/Box";
3637

3738
const styles = (theme: Theme) =>
3839
createStyles({
@@ -171,12 +172,19 @@ const ChangeUserGroups = ({
171172
}}
172173
/>
173174
</Grid>
174-
<Grid item xs={12} className={classes.buttonContainer}>
175+
<Box
176+
sx={{
177+
display: "flex",
178+
gap: 2,
179+
alignItems: "center",
180+
justifyContent: "flex-end",
181+
width: "100%",
182+
}}
183+
>
175184
<Button
176185
id={"clear-change-user-groups"}
177186
type="button"
178187
variant="regular"
179-
style={classes.spacerRight}
180188
onClick={resetForm}
181189
label={"Clear"}
182190
/>
@@ -188,7 +196,7 @@ const ChangeUserGroups = ({
188196
disabled={addLoading || !sendEnabled}
189197
label={"Save"}
190198
/>
191-
</Grid>
199+
</Box>
192200
{addLoading && (
193201
<Grid item xs={12}>
194202
<LinearProgress />

0 commit comments

Comments
 (0)