From 6f86f0514be5503100f5b7990b6a76fa2ec2de6f Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Mon, 15 Nov 2021 19:32:25 +0330 Subject: [PATCH] migrate CategorySelect to Mui 5 (#85) --- src/components/navbar/action/CategorySelect.tsx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/components/navbar/action/CategorySelect.tsx b/src/components/navbar/action/CategorySelect.tsx index 4347621e..da149de9 100644 --- a/src/components/navbar/action/CategorySelect.tsx +++ b/src/components/navbar/action/CategorySelect.tsx @@ -6,8 +6,6 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import React, { useEffect, useState } from 'react'; -import makeStyles from '@mui/styles/makeStyles'; -import createStyles from '@mui/styles/createStyles'; import Button from '@mui/material/Button'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; @@ -18,13 +16,6 @@ import FormControlLabel from '@mui/material/FormControlLabel'; import FormGroup from '@mui/material/FormGroup'; import client from 'util/client'; -const useStyles = makeStyles(() => createStyles({ - paper: { - maxHeight: 435, - width: '80%', - }, -})); - interface IProps { open: boolean setOpen: (value: boolean) => void @@ -37,7 +28,6 @@ interface ICategoryInfo { } export default function CategorySelect(props: IProps) { - const classes = useStyles(); const { open, setOpen, mangaId } = props; const [categoryInfos, setCategoryInfos] = useState([]); @@ -82,7 +72,12 @@ export default function CategorySelect(props: IProps) { return (