Skip to content

Commit

Permalink
Issue #PS-000 fix: Resolved lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Aug 3, 2024
1 parent 4a82715 commit 5aa5894
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 28 deletions.
4 changes: 2 additions & 2 deletions src/components/ActionCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { useTranslation } from "next-i18next";
import React from "react";
interface ActionCellProps {
rowData: any;
onEdit: (rowData: any) => void;
onDelete: (rowData: any) => void;
onEdit: (rowData: any) => void; //NOSONAR
onDelete: (rowData: any) => void; //NOSONAR
extraActions: {
name: string;
onClick: (rowData: any) => void;
Expand Down
5 changes: 1 addition & 4 deletions src/components/MultiSelectCheckboxes.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
import React from "react";
import {
FormControl,
FormControlLabel,
FormGroup,
FormLabel,
Checkbox,
Grid,
} from "@mui/material";
import { WidgetProps } from "@rjsf/utils";

interface CustomMultiselectCheckboxesProps {
label: string;
value: any;
id: string;
required: boolean;
disabled: boolean;
readonly: boolean;
options: any;
onChange: any;
schema: any;
}
const MultiSelectCheckboxes: React.FC<WidgetProps> = ({
const MultiSelectCheckboxes: React.FC<CustomMultiselectCheckboxesProps> = ({
schema,
options,
value,
Expand Down
8 changes: 1 addition & 7 deletions src/components/SimpleModal.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Box, Button, Divider, Modal, Typography } from "@mui/material";
import { useMediaQuery, useTheme, Box, Button, Divider, Modal, Typography } from "@mui/material";
import React, { ReactNode } from "react";

import manageUserStore from "@/store/manageUserStore";
import CloseSharpIcon from "@mui/icons-material/CloseSharp";
import { useTheme, useMediaQuery } from "@mui/material";
import { useTranslation } from "next-i18next";

interface SimpleModalProps {
Expand All @@ -28,8 +27,6 @@ const SimpleModal: React.FC<SimpleModalProps> = ({
children,
modalTitle,
}) => {
const { t } = useTranslation();
const store = manageUserStore();
const theme = useTheme<any>();
const isSmallScreen = useMediaQuery(theme.breakpoints.down("sm"));
const isMediumScreen = useMediaQuery(theme.breakpoints.between("sm", "md"));
Expand Down Expand Up @@ -110,11 +107,8 @@ const SimpleModal: React.FC<SimpleModalProps> = ({
"&.Mui-disabled": {
backgroundColor: theme?.palette?.primary?.main,
},
// minWidth: '84px',
// height: '2.5rem',
padding: theme.spacing(1),
fontWeight: "500",
// width: '100%',
}}
onClick={primaryActionHandler}
></Button>
Expand Down
24 changes: 9 additions & 15 deletions src/components/layouts/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
import React, { useState } from "react";
import NextLink from "next/link";
import PropTypes from "prop-types";
import { ExpandLess, ExpandMore } from "@mui/icons-material";
import {
Box,
Collapse,
Drawer,
useMediaQuery,
List,
ListItem,
ListItemIcon,
ListItemText,
Collapse,
Typography,
Tooltip,
Typography,
useMediaQuery,
} from "@mui/material";
import FeatherIcon from "feather-icons-react";
import { useTranslation } from "next-i18next";
import { useRouter } from "next/router";
import PropTypes from "prop-types";
import { useState } from "react";
import LogoIcon from "../logo/LogoIcon";
import Menuitems from "./MenuItems";
import Buynow from "./Buynow";
import { useRouter } from "next/router";
import theme from "@/components/theme/theme";
import { ExpandLess, ExpandMore } from "@mui/icons-material";
import { useTranslation } from "next-i18next";
import { useTheme } from "@mui/material/styles";
import Menuitems from "./MenuItems";

const Sidebar = ({
isMobileSidebarOpen,
Expand All @@ -38,7 +35,6 @@ const Sidebar = ({
const handleClick = (index: number) => {
setOpen((prevOpen) => (prevOpen === index ? null : index));
};
const theme = useTheme<any>();

const SidebarContent = (
<Box
Expand All @@ -47,8 +43,6 @@ const Sidebar = ({
bgcolor="#F8EFDA
"
sx={{
// width: '100%',
// height: '100vh',
background: "linear-gradient(to bottom, white, #F8EFDA)",
}}
>
Expand Down

0 comments on commit 5aa5894

Please sign in to comment.