diff --git a/webclient/src/Account.js b/webclient/src/Account.js index c8853e6..78b07b3 100644 --- a/webclient/src/Account.js +++ b/webclient/src/Account.js @@ -316,9 +316,7 @@ export function BioNotesForm(props) { const history = useHistory(); const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value }); - const handleUpload = (e, v) => setInput({ ...input, [v.name]: e.target.files[0] }); const handleChange = (e) => handleValues(e, e.currentTarget); - const handleCheck = (e, v) => setInput({ ...input, [v.name]: v.checked }); const handleSubmit = (e) => { if (loading) return; diff --git a/webclient/src/Admin.js b/webclient/src/Admin.js index 6792747..2cba85e 100644 --- a/webclient/src/Admin.js +++ b/webclient/src/Admin.js @@ -1,5 +1,5 @@ import React, { useState, useEffect, useReducer } from 'react'; -import { Link, useHistory } from 'react-router-dom'; +import { Link } from 'react-router-dom'; import './light.css'; import { Button, Container, Checkbox, Form, Header, Icon, Table } from 'semantic-ui-react'; import * as Datetime from 'react-datetime'; @@ -51,7 +51,7 @@ export function AdminVetting(props) { const { token } = props; const [vetting, setVetting] = useState(vettingCache); const [refreshCount, refreshVetting] = useReducer(x => x + 1, 0); - const [error, setError] = useState(false); + const [error] = useState(false); const [showAll, setShowAll] = useState(false); useEffect(() => { @@ -121,11 +121,11 @@ export function AdminVetting(props) { } export function AdminHistory(props) { - const { token, user } = props; + const { token } = props; const [history, setHistory] = useState(historyCache); const [excludeSystem, setExcludeSystem] = useState(excludeSystemCache); const [focus, setFocus] = useState(focusCache); - const [error, setError] = useState(false); + const [error] = useState(false); const handleExcludeSystem = (e, v) => { setExcludeSystem(v.checked); @@ -183,7 +183,7 @@ export function AdminHistory(props) {
Object ID: {x.object_id}, Database Revert
{!!x.changes.length && @@ -226,7 +226,7 @@ let backupsCache = false; export function AdminBackups(props) { const [backups, setBackups] = useState(backupsCache); - const [error, setError] = useState(false); + const [error] = useState(false); useEffect(() => { requester('/backup/', 'GET') @@ -272,10 +272,10 @@ export function AdminBackups(props) { }; export function AdminUsage(props) { - const { token, user } = props; + const { token } = props; const [input, setInput] = useState({ month: moment() }); const [loading, setLoading] = useState(false); - const [error, setError] = useState(false); + const [setError] = useState(false); const handleDatetime = (v) => setInput({ ...input, month: v }); diff --git a/webclient/src/Debug.js b/webclient/src/Debug.js index 090bca7..ce62fc4 100644 --- a/webclient/src/Debug.js +++ b/webclient/src/Debug.js @@ -1,18 +1,9 @@ -import React, { useState, useEffect, useReducer } from 'react'; -import { BrowserRouter as Router, Switch, Route, Link, useParams, useLocation } from 'react-router-dom'; -import moment from 'moment-timezone'; -import QRCode from 'react-qr-code'; +import React from 'react'; +import { Link } from 'react-router-dom'; import './light.css'; -import { Button, Container, Divider, Dropdown, Form, Grid, Header, Icon, Image, Menu, Message, Popup, Segment, Table } from 'semantic-ui-react'; -import { statusColor, BasicTable, siteUrl, staticUrl, requester, isAdmin } from './utils.js'; -import { LoginForm, SignupForm } from './LoginSignup.js'; -import { AccountForm } from './Account.js'; -import { SignForm } from './Sign.js'; -import { PayPalSubscribeDeal } from './PayPal.js'; +import { Button, Container, Header } from 'semantic-ui-react'; export function Debug(props) { - const { user, token } = props; - return (