Skip to content

Commit c7e0a9e

Browse files
Merge pull request #4214 from Zacgoose/linting-1
Chore: Some House Keeping
2 parents 39d1dfd + 0b131df commit c7e0a9e

File tree

170 files changed

+1177
-1041
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+1177
-1041
lines changed

src/api/ApiCall.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
keepPreviousData,
32
useInfiniteQuery,
43
useMutation,
54
useQuery,

src/components/CSVReader.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from "react";
1+
import { useState } from "react";
22
import { useCSVReader, lightenDarkenColor, formatFileSize } from "react-papaparse";
33

44
const GREY = "#CCC";

src/components/CippCards/CippBannerListCard.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ CippBannerListCard.propTypes = {
204204
actionButton: PropTypes.element,
205205
propertyItems: PropTypes.array,
206206
table: PropTypes.object,
207-
actionButton: PropTypes.element,
208207
isFetching: PropTypes.bool,
209208
children: PropTypes.node,
210209
cardLabelBoxActions: PropTypes.element,

src/components/CippCards/CippDomainCards.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState } from "react";
1+
import { useEffect, useState } from "react";
22
import {
33
Button,
44
Collapse,
@@ -477,7 +477,7 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
477477
waiting: !!domain && enableHttps,
478478
});
479479

480-
// Adjust grid item size based on fullwidth prop
480+
// Adjust Grid size based on fullwidth prop
481481
const gridItemSize = fullwidth ? 12 : 4;
482482

483483
return (

src/components/CippCards/CippInfoBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const CippInfoBar = ({ data, isFetching }) => {
9595
}}
9696
>
9797
<Grid container spacing={1}>
98-
<Grid item size={{ xs: 12 }}>
98+
<Grid size={{ xs: 12 }}>
9999
{item?.offcanvas?.propertyItems?.length > 0 && (
100100
<CippPropertyListCard
101101
isFetching={isFetching}

src/components/CippCards/CippPageCard.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useRouter } from "next/router";
22
import { Box, Container, Stack, Button, SvgIcon, Typography, Card } from "@mui/material";
33
import ArrowLeftIcon from "@mui/icons-material/ArrowLeft";
4-
import Head from "next/head";
54
import { CippHead } from "../CippComponents/CippHead";
65
const CippPageCard = (props) => {
76
const {

src/components/CippCards/CippRemediationCard.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { Button, Typography, List, ListItem, SvgIcon } from "@mui/material";
32
import CippButtonCard from "./CippButtonCard"; // Adjust the import path as needed
43
import { CippApiDialog } from "../CippComponents/CippApiDialog";

src/components/CippCards/CippUniversalSearch.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const Results = ({ items = [], searchValue }) => {
9797
</Typography>
9898
<Grid container spacing={2} mt={2}>
9999
{displayedResults.map((item, key) => (
100-
<Grid item size={{ md: 4, sm: 6, xs: 12 }} key={key}>
100+
<Grid size={{ md: 4, sm: 6, xs: 12 }} key={key}>
101101
<ResultsRow match={item} searchValue={searchValue} />
102102
</Grid>
103103
))}

src/components/CippComponents/AppApprovalTemplateForm.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import React, { useState, useEffect } from "react";
1+
import { useState, useEffect } from "react";
22
import { Alert, Skeleton, Stack, Typography, Button, Box } from "@mui/material";
3-
import { ApiGetCall } from "/src/api/ApiCall";
43
import { CippFormComponent } from "./CippFormComponent";
54
import { CippApiResults } from "./CippApiResults";
65
import { Grid } from "@mui/system";

src/components/CippComponents/BPASyncDialog.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import React, { useState } from "react";
1+
import { useState } from "react";
22
import {
33
Dialog,
44
DialogContent,
55
DialogTitle,
66
Button,
77
DialogActions,
8-
Alert,
9-
CircularProgress,
108
} from "@mui/material";
11-
import { CheckCircle, Error, Sync } from "@mui/icons-material";
9+
import { Sync } from "@mui/icons-material";
1210
import { useForm, FormProvider } from "react-hook-form";
1311
import { CippFormTenantSelector } from "./CippFormTenantSelector";
1412
import { ApiPostCall } from "/src/api/ApiCall";

0 commit comments

Comments
 (0)