Skip to content

Commit

Permalink
fix: clean up build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Dec 17, 2021
1 parent cd7d827 commit 79afb62
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 19 deletions.
22 changes: 13 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function Home(props) {
.add(-1 * timeRange[timeRangeIndex], 'day')
.format('YYYY-MM-DD'),
);
const [endDate, setEndDate] = React.useState(moment().format('YYYY-MM-DD'));
const [endDate /*, setEndDate*/] = React.useState(
moment().format('YYYY-MM-DD'),
);
const handleTimeClick = (event) => {
setAnchorEl(event.currentTarget);
};
Expand Down
13 changes: 10 additions & 3 deletions src/components/reportingCards/ReportingCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*/
import {
Box,
Grid,
// Grid,
Card,
Modal,
Typography,
Avatar,
// Avatar,
Button,
} from '@material-ui/core';
import { withStyles } from '@material-ui/styles';
Expand Down Expand Up @@ -122,7 +122,14 @@ const style = (theme) => ({
});

function GrowerReportingCard(props) {
const { classes, data, text, color, icon, disableSeeMore, moreData } = props;
const {
classes,
data,
text,
color,
icon,
disableSeeMore /*, moreData*/,
} = props;
const [open, setOpen] = React.useState(false);

const Icon = icon;
Expand Down
1 change: 0 additions & 1 deletion src/components/reportingCards/ReportingCard1.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReportingCard from './ReportingCard';
import log from 'loglevel';
import useLoadData from './ReportingCard.hook';
import PeopleOutlineIcon from '@material-ui/icons/PeopleOutline';

Expand Down
1 change: 0 additions & 1 deletion src/components/reportingCards/ReportingCard2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReportingCard from './ReportingCard';
import log from 'loglevel';
import useLoadData from './ReportingCard.hook';
import PhotoCameraIcon from '@material-ui/icons/PhotoCamera';

Expand Down
1 change: 0 additions & 1 deletion src/components/reportingCards/ReportingCard3.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReportingCard from './ReportingCard';
import log from 'loglevel';
import useLoadData from './ReportingCard.hook';
import Icon from '@material-ui/icons/LiveHelp';

Expand Down
1 change: 0 additions & 1 deletion src/components/reportingCards/ReportingCard4.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReportingCard from './ReportingCard';
import log from 'loglevel';
import useLoadData from './ReportingCard.hook';
import Icon from '@material-ui/icons/Flag';

Expand Down
1 change: 0 additions & 1 deletion src/components/reportingCards/ReportingCard5.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReportingCard from './ReportingCard';
import log from 'loglevel';
import useLoadData from './ReportingCard.hook';
import Icon from '@material-ui/icons/Eco';

Expand Down
1 change: 0 additions & 1 deletion src/components/reportingCards/ReportingCard6.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReportingCard from './ReportingCard';
import log from 'loglevel';
import useLoadData from './ReportingCard.hook';
import Icon from '@material-ui/icons/PhotoCamera';

Expand Down

0 comments on commit 79afb62

Please sign in to comment.