Skip to content

Commit 07b7af5

Browse files
authored
Minor Adjustments (#2719)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent c9ac525 commit 07b7af5

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

portal-ui/src/screens/Console/HealthInfo/HealthInfo.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
import { AppState, useAppDispatch } from "../../../store";
2424
import { useSelector } from "react-redux";
2525
import { useNavigate } from "react-router-dom";
26-
import { Button, HelpBox, Loader, WarnIcon } from "mds";
26+
import { Box, Button, Grid, HelpBox, Loader, WarnIcon } from "mds";
2727
import {
2828
DiagStatError,
2929
DiagStatInProgress,
@@ -44,7 +44,6 @@ import {
4444
actionsTray,
4545
containerForHeader,
4646
} from "../Common/FormComponents/common/styleLibrary";
47-
import { Grid } from "@mui/material";
4847

4948
import TestWrapper from "../Common/TestWrapper/TestWrapper";
5049
import PageLayout from "../Common/Layout/PageLayout";
@@ -54,8 +53,8 @@ import {
5453
healthInfoResetMessage,
5554
} from "./healthInfoSlice";
5655
import RegisterCluster from "../Support/RegisterCluster";
57-
import { registeredCluster } from "../../../config";
5856
import PageHeaderWrapper from "../Common/PageHeaderWrapper/PageHeaderWrapper";
57+
import { registeredCluster } from "../../../config";
5958

6059
const styles = (theme: Theme) =>
6160
createStyles({
@@ -310,8 +309,15 @@ const HealthInfo = ({ classes }: IHealthInfo) => {
310309
</div>
311310
) : (
312311
<Fragment>
313-
<Grid container justifyItems={"flex-start"}>
314-
<Grid item xs={6}>
312+
<Box
313+
sx={{
314+
display: "flex",
315+
gap: 10,
316+
alignItems: "center",
317+
justifyContent: "center",
318+
}}
319+
>
320+
<Box>
315321
{serverDiagnosticStatus !== DiagStatError &&
316322
!downloadDisabled && (
317323
<Button
@@ -323,8 +329,8 @@ const HealthInfo = ({ classes }: IHealthInfo) => {
323329
label={"Download"}
324330
/>
325331
)}
326-
</Grid>
327-
<Grid item xs={6}>
332+
</Box>
333+
<Box>
328334
<Button
329335
id="start-new-diagnostic"
330336
type="submit"
@@ -335,8 +341,8 @@ const HealthInfo = ({ classes }: IHealthInfo) => {
335341
onClick={startDiagnosticAction}
336342
label={buttonStartText}
337343
/>
338-
</Grid>
339-
</Grid>
344+
</Box>
345+
</Box>
340346
</Fragment>
341347
)}
342348
</Grid>

0 commit comments

Comments
 (0)