Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Feb 7, 2020
1 parent ffd8d3c commit cd10d65
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 38 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/components/slider/DiscreteSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';

const useStyles = makeStyles(theme => ({
const useStyles = makeStyles({
root: {
width: 300,
},
}));
});

function valuetext(value) {
return `${value}°C`;
Expand Down
14 changes: 6 additions & 8 deletions docs/src/pages/components/slider/DiscreteSlider.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: 300,
},
}),
);
const useStyles = makeStyles({
root: {
width: 300,
},
});

function valuetext(value: number) {
return `${value}°C`;
Expand Down
4 changes: 0 additions & 4 deletions docs/src/pages/components/slider/DiscreteSliderLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ function valuetext(value) {
return `${value}°C`;
}

function valueLabelFormat(value) {
return marks.findIndex(mark => mark.value === value) + 1;
}

export default function DiscreteSlider() {
const classes = useStyles();

Expand Down
4 changes: 0 additions & 4 deletions docs/src/pages/components/slider/DiscreteSliderLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ function valuetext(value: number) {
return `${value}°C`;
}

function valueLabelFormat(value: number) {
return marks.findIndex(mark => mark.value === value) + 1;
}

export default function DiscreteSlider() {
const classes = useStyles();

Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/slider/DiscreteSliderSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';

const useStyles = makeStyles(theme => ({
const useStyles = makeStyles({
root: {
width: 300,
},
}));
});

function valuetext(value) {
return `${value}°C`;
Expand Down
14 changes: 6 additions & 8 deletions docs/src/pages/components/slider/DiscreteSliderSteps.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: 300,
},
}),
);
const useStyles = makeStyles({
root: {
width: 300,
},
});

function valuetext(value: number) {
return `${value}°C`;
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/slider/DiscreteSliderValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';

const useStyles = makeStyles(theme => ({
const useStyles = makeStyles({
root: {
width: 300,
},
}));
});

const marks = [
{
Expand Down
14 changes: 6 additions & 8 deletions docs/src/pages/components/slider/DiscreteSliderValues.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: 300,
},
}),
);
const useStyles = makeStyles({
root: {
width: 300,
},
});

const marks = [
{
Expand Down

0 comments on commit cd10d65

Please sign in to comment.