Remove several @ts-nochecks
This commit is contained in:
parent
04ecef98da
commit
baa1b32737
8 changed files with 7 additions and 13 deletions
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
/* eslint-disable camelcase */
|
||||
import { FC, useState } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
import { FC, PropsWithChildren, Fragment, ReactElement } from "react";
|
||||
import ExpandMore from "@mui/icons-material/ExpandMore";
|
||||
import List from "@mui/material/List";
|
||||
|
|
@ -10,7 +9,7 @@ import Tooltip from "@mui/material/Tooltip";
|
|||
import { makeStyles } from "@mui/material/styles";
|
||||
import { useTranslate } from "react-admin";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
const useStyles = makeStyles((theme: any) => ({
|
||||
icon: { minWidth: theme.spacing(5) },
|
||||
sidebarIsOpen: {
|
||||
"& a": {
|
||||
|
|
@ -45,9 +44,11 @@ export const SubMenu: FC<SubMenuProps> = ({
|
|||
dense,
|
||||
}) => {
|
||||
const translate = useTranslate();
|
||||
// @ts-expect-error
|
||||
const classes = useStyles();
|
||||
|
||||
const header = (
|
||||
// @ts-expect-error
|
||||
<MenuItem dense={dense} button onClick={handleToggle}>
|
||||
<ListItemIcon className={classes.icon}>
|
||||
{isOpen ? <ExpandMore /> : icon}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue