Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Jan 27, 2020
1 parent b8f641e commit 168f2fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
7 changes: 5 additions & 2 deletions docs/src/modules/components/HomeQuote.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useStyles = makeStyles(theme => ({
}));

function HomeQuote(props) {
const { avatar, item, quote, name, userName, ...other } = props;
const { avatar, quote, name, userName } = props;
const classes = useStyles();

return (
Expand Down Expand Up @@ -65,7 +65,10 @@ function HomeQuote(props) {
}

HomeQuote.propTypes = {
items: PropTypes.object,
avatar: PropTypes.string,
name: PropTypes.string,
quote: PropTypes.string,
userName: PropTypes.string,
};

export default HomeQuote;
3 changes: 1 addition & 2 deletions docs/src/modules/components/HomeQuotes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { useSelector } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import NoSsr from '@material-ui/core/NoSsr';
Expand Down Expand Up @@ -81,7 +80,7 @@ const styles = theme => ({

const startIndex = Math.floor(Math.random() * quotes.length);
const selectedQuotes = [];
for (let i = 0; i < 3; i++) {
for (let i = 0; i < 3; i += 1) {
selectedQuotes.push(quotes[(startIndex + i) % quotes.length]);
}

Expand Down
3 changes: 1 addition & 2 deletions docs/src/modules/components/HomeSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { useSelector } from 'react-redux';
import { withStyles, useTheme } from '@material-ui/core/styles';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
Expand Down Expand Up @@ -90,7 +90,6 @@ const styles = theme => ({
function HomeSteps(props) {
const { classes } = props;
const t = useSelector(state => state.options.t);
const theme = useTheme();

return (
<Container disableGutters maxwidth="lg" className={classes.container}>
Expand Down
8 changes: 0 additions & 8 deletions docs/src/modules/components/HomeThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ import Button from '@material-ui/core/Button';
import NoSsr from '@material-ui/core/NoSsr';
import Link from 'docs/src/modules/components/Link';

const InstallationLink = React.forwardRef((buttonProps, ref) => (
<Link naked prefetch href="/getting-started/installation" ref={ref} {...buttonProps} />
));

const UsageLink = React.forwardRef((buttonProps, ref) => (
<Link naked prefetch href="/getting-started/usage" ref={ref} {...buttonProps} />
));

const styles = theme => ({
root: {
padding: theme.spacing(2),
Expand Down

0 comments on commit 168f2fc

Please sign in to comment.