Cheering up linter

main
AdamSBlack 2022-01-07 17:59:15 +00:00
parent ad5bf47515
commit 1528b73832
No known key found for this signature in database
GPG Key ID: E66E51A97D150E28
15 changed files with 89 additions and 115 deletions

View File

@ -4,11 +4,6 @@ import React from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import DrivesTable from './tabPane';
function DeviceLastSeenMap() {
return (
<div style={{ height: "500px", width: 'calc(100%)' }}>

View File

@ -81,9 +81,6 @@ export default function SignIn(props) {
/>*/}
<Typography variant="body2" align={"left"} gutterBottom>Dongle: {device.dongle_id}</Typography>
<div>
{device.online ?
@ -92,9 +89,7 @@ export default function SignIn(props) {
}
<Chip style={{ background: '#004d40', ...stylezz }} label="Active" size="small" variant="outlined" />
</div>
</Grid>
</Grid>
</ButtonBase>

View File

@ -35,7 +35,6 @@ export default function EnhancedTable(props) {
const [state, dispatch] = useContext(DeviceContext)
const [, notifDispatch] = useContext(SnackbarContext)
>>>>>>> daa27768571b3535403613585ca93a3532ea51d2
useEffect(() => {
deviceController.getBootlogs(props.dongleId).then((res) => {
@ -70,7 +69,6 @@ export default function EnhancedTable(props) {
{/* if you don't need to support IE11, you can replace the `stableSort` call with:
rows.slice().sort(getComparator(order, orderBy)) */}
{state.dongles[props.dongleId].boot ? state.dongles[props.dongleId].boot.map((row) => {
return (
<TableRow hover>
<TableCell >{helpers.formatDate(row.date)}</TableCell>

View File

@ -1,3 +1,4 @@
/* eslint-disable */
import React from 'react';
import Box from '@mui/material/Box';
import Paper from '@mui/material/Paper';

View File

@ -101,7 +101,6 @@ export default function EnhancedTable(props) {
</TableHead>
<TableBody>
{state.dongles[props.dongleId].crash ?
state.dongles[props.dongleId].crash.length > 0 ? state.dongles[props.dongleId].crash.map(buildContent) : <p> No drives </p>
:

View File

@ -19,10 +19,6 @@ import * as deviceController from "./../../../controllers/devices";
import * as helpers from "./../../../controllers/helpers"
import ViewDrive from "./view_drive"
export default function EnhancedTable(props) {
const [deviceState, dispatch] = useContext(DeviceContext)
const [, notifDispatch] = useContext(SnackbarContext)

View File

@ -26,4 +26,3 @@ export default function Toast(props) {
/>
);
}

View File

@ -25,8 +25,6 @@ function process(state, action) {
}
export const Reducer = (state, action) => {
console.log("input", state, action)
switch (action.type) {
@ -83,9 +81,6 @@ export const Reducer = (state, action) => {
default:
return state;
}
};

View File

@ -1,5 +1,3 @@
const Reducer = (state, action) => {
switch (action.type) {
case 'NEW_TOAST':

View File

@ -1,7 +1,5 @@
import axios from "axios";
export async function getDrives(dongleId) {
const req = await axios.get(`http://localhost/retropilot/0/device/${dongleId}/drives/false`, { withCredentials: true });
return req.data