remove unneded no-unused-vars

This commit is contained in:
nikk gitanes
2021-06-06 20:27:09 +03:00
parent 2a38d2ad53
commit c03123fdc5
6 changed files with 5 additions and 12 deletions

View File

@@ -10,6 +10,7 @@ import axios from 'axios'
import { useTranslation } from 'react-i18next'
export default function AddDialog({ handleClose }) {
const { t } = useTranslation()
const [link, setLink] = useState('')
const [title, setTitle] = useState('')
const [poster, setPoster] = useState('')
@@ -18,9 +19,6 @@ export default function AddDialog({ handleClose }) {
const inputTitle = ({ target: { value } }) => setTitle(value)
const inputPoster = ({ target: { value } }) => setPoster(value)
// eslint-disable-next-line no-unused-vars
const { t } = useTranslation()
const handleSave = () => {
axios.post(torrentsHost(), { action: 'add', link, title, poster, save_to_db: true }).finally(() => handleClose())
}

View File

@@ -8,11 +8,10 @@ import { useTranslation } from 'react-i18next'
import AddDialog from './AddDialog'
export default function AddDialogButton() {
const { t } = useTranslation()
const [isDialogOpen, setIsDialogOpen] = useState(false)
const handleClickOpen = () => setIsDialogOpen(true)
const handleClose = () => setIsDialogOpen(false)
// eslint-disable-next-line no-unused-vars
const { t } = useTranslation()
return (
<div>
<ListItem button key='Add' onClick={handleClickOpen}>