Skip to content

Commit 7741312

Browse files
Merge pull request #4372 from Zacgoose/more-grid-fixes
Remove last of grid and unstable grid 2 imports
2 parents a0f3e3d + a6e4b89 commit 7741312

File tree

13 files changed

+14
-19
lines changed

13 files changed

+14
-19
lines changed

src/components/CippComponents/CippAppPermissionBuilder.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ const CippAppPermissionBuilder = ({
821821
</Grid>
822822
</Grid>
823823
<Grid
824-
item
825824
size={12}
826825
sx={{
827826
mt: createServicePrincipal.isSuccess || createServicePrincipal.isPending ? 3 : 0,

src/components/CippFormPages/CippJSONView.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ function CippJsonView({
519519
?.filter((data) => data !== null && data !== undefined)
520520
.map((data, index) => (
521521
<Grid
522-
item
523522
size={{ sm: type === "intune" ? 12 : 3, xs: 12 }}
524523
key={index}
525524
sx={{

src/components/CippFormPages/CippSchedulerForm.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ const CippSchedulerForm = (props) => {
309309
key={idx}
310310
>
311311
<Grid
312-
item
313312
size={{ md: param.Type === "System.Collections.Hashtable" ? 12 : gridSize, xs: 12 }}
314313
>
315314
{param.Type === "System.Boolean" ||

src/components/CippWizard/CippIntunePolicy.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const CippIntunePolicy = (props) => {
103103
return null;
104104
}
105105
return uniquePlaceholders.map((placeholder) => (
106-
<Grid key={placeholder} item size={{ xs: 6 }}>
106+
<Grid key={placeholder} size={{ xs: 6 }}>
107107
{selectedTenants.map((tenant, idx) => (
108108
<CippFormComponent
109109
key={`${tenant.value}-${placeholder}-${idx}`}

src/components/CippWizard/CippWizardAutopilotImport.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import {
22
Button,
3-
Grid,
43
Link,
54
Stack,
6-
Card,
7-
CardContent,
85
Box,
96
Typography,
107
Dialog,
@@ -14,13 +11,12 @@ import {
1411
TextField,
1512
Alert,
1613
} from "@mui/material";
14+
import { Grid } from "@mui/system";
1715
import { CippWizardStepButtons } from "./CippWizardStepButtons";
18-
import CippFormComponent from "../CippComponents/CippFormComponent";
1916
import { CippDataTable } from "../CippTable/CippDataTable";
2017
import { useWatch } from "react-hook-form";
2118
import { Delete, FileDownload, Upload, Add } from "@mui/icons-material";
2219
import { useEffect, useState } from "react";
23-
import { getCippTranslation } from "../../utils/get-cipp-translation";
2420
import React from "react";
2521

2622
export const CippWizardAutopilotImport = (props) => {

src/pages/email/spamfilter/list-quarantine-policies/add.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, { useEffect } from "react";
2-
import { Grid, Divider } from "@mui/material";
1+
import { useEffect } from "react";
2+
import { Divider } from "@mui/material";
3+
import { Grid } from "@mui/system";
34
import { useForm, useWatch } from "react-hook-form";
45
import { Layout as DashboardLayout } from "/src/layouts/index.js";
56
import CippFormPage from "/src/components/CippFormPages/CippFormPage";

src/pages/tenant/standards/bpa-report/builder.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ const Page = () => {
255255
<Grid container spacing={2}>
256256
{blockCards.map((block, index) => (
257257
<Grid
258-
item
259258
size={{ md: layoutMode === "Table" ? 12 : 4, sm: layoutMode === "Table" ? 12 : 6, xs: 10 }}
260259
key={block.id}
261260
>

src/pages/tenant/standards/bpa-report/view.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ const Page = () => {
157157
<>
158158
{blockCards.map((block, index) => (
159159
<Grid
160-
item
161160
size={{ md: layoutMode === "Table" ? 12 : 4, sm: layoutMode === "Table" ? 12 : 6, xs: 10 }}
162161
key={block.name}
163162
>

src/pages/tenant/standards/list-standards/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const Page = () => {
130130
<div>
131131
{oldStandards.isSuccess && oldStandards.data.length !== 0 && (
132132
<Grid container spacing={2}>
133-
<Grid container item spacing={2}>
133+
<Grid container spacing={2}>
134134
<Alert
135135
severity="warning"
136136
style={{ display: "flex", alignItems: "center", width: "100%" }}

src/pages/tools/breachlookup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Page = () => {
5252
>
5353
<Container maxWidth={false}>
5454
<Grid container spacing={3}>
55-
<Grid container item spacing={4}>
55+
<Grid container spacing={4}>
5656
<Grid spacing={4} size={{ xs: 12 }}>
5757
<Alert severity="info">
5858
<Typography variant="body1" color="textPrimary">
@@ -120,7 +120,7 @@ const Page = () => {
120120
</Grid>
121121
)}
122122
{getGeoIP.data?.map((breach, index) => (
123-
<Grid key={index} spacing={2} item size={{ xs: 3 }}>
123+
<Grid key={index} spacing={2} size={{ xs: 3 }}>
124124
<CippButtonCard
125125
cardSx={{ display: "flex", flexDirection: "column", height: "100%" }}
126126
title={<>{breach.Title}</>}

0 commit comments

Comments
 (0)