no-unused-vars on Paste.js
This commit is contained in:
parent
5ecc92cd7a
commit
8bdc0b3dc4
|
@ -1,8 +1,6 @@
|
||||||
import React, { useState, useEffect, useReducer, useContext } from 'react';
|
import React, { useState, useEffect, useReducer } from 'react';
|
||||||
import { BrowserRouter as Router, Switch, Route, Link, useParams, useHistory } from 'react-router-dom';
|
import { Button, Container, Form, Header, Message } from 'semantic-ui-react';
|
||||||
import { Button, Container, Checkbox, Dimmer, Divider, Dropdown, Form, Grid, Header, Icon, Image, Menu, Message, Segment, Table } from 'semantic-ui-react';
|
import { requester } from './utils.js';
|
||||||
import { apiUrl, statusColor, BasicTable, staticUrl, requester } from './utils.js';
|
|
||||||
import { NotFound } from './Misc.js';
|
|
||||||
|
|
||||||
function PasteForm(props) {
|
function PasteForm(props) {
|
||||||
const { token, input, setInput } = props;
|
const { token, input, setInput } = props;
|
||||||
|
@ -58,7 +56,7 @@ function LabelForm(props) {
|
||||||
const [input, setInput] = useState({ id: '107', size: '2' });
|
const [input, setInput] = useState({ id: '107', size: '2' });
|
||||||
const [label, setLabel] = useState(false);
|
const [label, setLabel] = useState(false);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [success, setSuccess] = useState(false);
|
const [setSuccess] = useState(false);
|
||||||
|
|
||||||
const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value });
|
const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value });
|
||||||
const handleChange = (e) => handleValues(e, e.currentTarget);
|
const handleChange = (e) => handleValues(e, e.currentTarget);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user