Remove several @ts-nochecks
This commit is contained in:
parent
04ecef98da
commit
baa1b32737
8 changed files with 7 additions and 13 deletions
|
|
@ -1,7 +1,6 @@
|
|||
// @ts-nocheck
|
||||
import { FC, useState } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid, Button } from "@mui/material";
|
||||
import { Grid } from "@mui/material";
|
||||
import { Layout } from "components/Layout";
|
||||
import Iframe from "react-iframe";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// @ts-nocheck
|
||||
import { FC, useState } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid, Button } from "@mui/material";
|
||||
import { Grid } from "@mui/material";
|
||||
import { Layout } from "components/Layout";
|
||||
import Iframe from "react-iframe";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
import { FC, useState } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid, Button } from "@mui/material";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
/* eslint-disable react/display-name */
|
||||
import { forwardRef } from "react";
|
||||
import useDigitInput, { InputAttributes } from "react-digit-input";
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
import React, { useState } from "react";
|
||||
import {
|
||||
Show,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
// @ts-nocheck
|
||||
import { NextPage } from "next";
|
||||
import { Typography, Box, Button, Grid, Link } from "@mui/material";
|
||||
import { FC, useEffect } from "react";
|
||||
import { FC, useEffect, PropsWithChildren } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
|
||||
export const RedirectToAdmin: FC = ({ children }) => {
|
||||
export const RedirectToAdmin: FC<PropsWithChildren> = ({ children }) => {
|
||||
const router = useRouter();
|
||||
useEffect(() => {
|
||||
router.push("/admin");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue