no-unused-vars Usasge.js

This commit is contained in:
Kent Brockman 2022-07-12 23:50:42 -06:00
parent 9dfd547511
commit 1260acc988

View File

@ -1,9 +1,8 @@
import React, { useRef, useState, useEffect, useReducer } from 'react'; import React, { useRef, useState, useEffect } from 'react';
import { BrowserRouter as Router, Switch, Route, Link, useParams, useLocation } from 'react-router-dom'; import { useParams } from 'react-router-dom';
import moment from 'moment-timezone'; import moment from 'moment-timezone';
import QRCode from 'react-qr-code'; import { Button, Container, Header } from 'semantic-ui-react';
import { Button, Container, Divider, Dropdown, Form, Grid, Header, Icon, Image, Menu, Message, Popup, Segment, Table } from 'semantic-ui-react'; import { requester } from './utils.js';
import { statusColor, BasicTable, siteUrl, staticUrl, requester, isAdmin } from './utils.js';
const deviceNames = { const deviceNames = {
'trotec': {title: 'Trotec', device: 'TROTECS300'}, 'trotec': {title: 'Trotec', device: 'TROTECS300'},
@ -48,8 +47,6 @@ export function Usage(props) {
const inUse = usage && moment().unix() - usage.track.time <= 60; const inUse = usage && moment().unix() - usage.track.time <= 60;
const showUsage = usage && inUse && usage.track.username === usage.username; const showUsage = usage && inUse && usage.track.username === usage.username;
const now = moment();
return ( return (
<Container> <Container>
<div className='usage' ref={ref}> <div className='usage' ref={ref}>