From a1b2a268970c50684fc91ae6fae751accad6abee Mon Sep 17 00:00:00 2001 From: deanchen Date: Wed, 26 Jan 2022 21:38:06 +0800 Subject: [PATCH] fix: broken eslint --- src/components/CaptureMatching/CaptureImage.js | 12 ++---------- .../CaptureMatching/CaptureMatchingView.js | 2 -- .../CaptureMatching/CurrentCaptureNumber.js | 3 +++ src/components/CaptureMatching/Grower.js | 6 ++++++ 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/CaptureMatching/CaptureImage.js b/src/components/CaptureMatching/CaptureImage.js index 199c5f333..4fe080c67 100644 --- a/src/components/CaptureMatching/CaptureImage.js +++ b/src/components/CaptureMatching/CaptureImage.js @@ -2,16 +2,8 @@ import React from 'react'; import CaptureHeader from './CaptureHeader'; import Grower from './Grower'; -import theme from '../common/theme'; - -import { - Tooltip, - Typography, - Box, - Button, - Grid, - Paper, -} from '@material-ui/core'; + +import { Tooltip, Typography, Box, Button, Paper } from '@material-ui/core'; import AccessTimeIcon from '@material-ui/icons/AccessTime'; import LocationOnOutlinedIcon from '@material-ui/icons/LocationOnOutlined'; import SkipNextIcon from '@material-ui/icons/SkipNext'; diff --git a/src/components/CaptureMatching/CaptureMatchingView.js b/src/components/CaptureMatching/CaptureMatchingView.js index c5d86f22d..65624db61 100644 --- a/src/components/CaptureMatching/CaptureMatchingView.js +++ b/src/components/CaptureMatching/CaptureMatchingView.js @@ -8,9 +8,7 @@ import Navbar from '../Navbar'; import { makeStyles } from '@material-ui/core/styles'; import { Grid, Box, Paper, Typography } from '@material-ui/core'; import NatureOutlinedIcon from '@material-ui/icons/NatureOutlined'; -import theme from '../common/theme'; import { documentTitle } from '../../common/variables'; -import EditIcon from '@material-ui/icons/Edit'; import Fab from '@material-ui/core/Fab'; const useStyle = makeStyles((theme) => ({ diff --git a/src/components/CaptureMatching/CurrentCaptureNumber.js b/src/components/CaptureMatching/CurrentCaptureNumber.js index 5591cea81..2fd8ce4ba 100644 --- a/src/components/CaptureMatching/CurrentCaptureNumber.js +++ b/src/components/CaptureMatching/CurrentCaptureNumber.js @@ -3,6 +3,9 @@ import { makeStyles } from '@material-ui/core/styles'; import { Paper, Typography, Box } from '@material-ui/core'; const useStyles = makeStyles((t) => ({ + test: { + padding: t.spacing(1), + }, box1: { width: 173, height: 50, diff --git a/src/components/CaptureMatching/Grower.js b/src/components/CaptureMatching/Grower.js index 1bc941215..c1d60ea58 100644 --- a/src/components/CaptureMatching/Grower.js +++ b/src/components/CaptureMatching/Grower.js @@ -4,6 +4,9 @@ import { makeStyles } from '@material-ui/core/styles'; import { Avatar, Typography, Box } from '@material-ui/core'; const useStyles = makeStyles((theme) => ({ + test: { + padding: theme.spacing(1), + }, box1: { display: 'flex', flexDirection: 'row', @@ -23,6 +26,9 @@ function Grower({ planter_photo_url, planter_username, status }) { {planter_username} {/*status*/ 'Other info'} + + {status} + );