fix slow linter
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
"plugin:react-hooks/recommended",
|
||||
"plugin:jsx-a11y/recommended"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"rules": {
|
||||
"react-hooks/rules-of-hooks": "error",
|
||||
"react-hooks/exhaustive-deps": "warn"
|
||||
},
|
||||
"parser": "@typescript-eslint/parser"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { useCallback } from 'react';
|
||||
import { Container, Dialog, IconButton } from '@mui/material';
|
||||
import { FiX } from 'react-icons/fi';
|
||||
|
||||
@@ -9,6 +9,15 @@ export default function NewConversationDialog({
|
||||
open: boolean;
|
||||
handleClose: () => void;
|
||||
}) {
|
||||
const handleSubmit = useCallback(() => {
|
||||
try {
|
||||
} catch (error) {
|
||||
//
|
||||
}
|
||||
|
||||
handleClose();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Dialog fullScreen open={open} onClose={handleClose}>
|
||||
<Container
|
||||
@@ -24,7 +33,7 @@ export default function NewConversationDialog({
|
||||
position: 'relative',
|
||||
}}
|
||||
>
|
||||
<IconButton sx={{ position: 'absolute', top: 10, right: 10 }}>
|
||||
<IconButton sx={{ position: 'absolute', top: 10, right: 10 }} onClick={handleClose}>
|
||||
<FiX />
|
||||
</IconButton>
|
||||
</Container>
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"allowJs": true,
|
||||
"module": "commonjs",
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"outDir": "dist",
|
||||
@@ -13,7 +12,8 @@
|
||||
"resolveJsonModule": true,
|
||||
"paths": {
|
||||
"*": ["node_modules/*"]
|
||||
}
|
||||
},
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user