Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtree committed Feb 4, 2021
1 parent d5d1c34 commit cfc4485
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/Category/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const useStyles = makeStyles(() => ({
marginLeft: 5,
},
label: {
fontSize: ".8em",
fontSize: '.8em',
},
checkbox: {
padding: 1,
Expand All @@ -23,7 +23,7 @@ const Category = ({ categoryName }) => {
const classes = useStyles();

const [activeCategories, setActiveCategories] = useRecoilState(
activeCategoriesState
activeCategoriesState,
);

const isEnabled = activeCategories[categoryName];
Expand All @@ -38,14 +38,14 @@ const Category = ({ categoryName }) => {
return (
<FormControlLabel
classes={classes}
control={
control={(
<Checkbox
className={classes.checkbox}
checked={isEnabled}
onChange={handleChange}
color="primary"
/>
}
)}
label={categoryName}
/>
);
Expand Down
8 changes: 4 additions & 4 deletions src/components/Provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useStyles = makeStyles(() => ({
marginLeft: 5,
},
label: {
fontSize: ".8em",
fontSize: '.8em',
},
checkbox: {
padding: 1,
Expand All @@ -24,7 +24,7 @@ const Provider = ({ providerName }) => {
const classes = useStyles();

const [activeProviders, setActiveProviders] = useRecoilState(
activeProvidersState
activeProvidersState,
);

const isEnabled = activeProviders[providerName];
Expand All @@ -39,14 +39,14 @@ const Provider = ({ providerName }) => {
return (
<FormControlLabel
classes={classes}
control={
control={(
<Checkbox
className={classes.checkbox}
checked={isEnabled}
onChange={handleChange}
color="primary"
/>
}
)}
label={titleCase(providerName)}
/>
);
Expand Down

0 comments on commit cfc4485

Please sign in to comment.