diff options
author | eug-vs <eug-vs@keemail.me> | 2020-04-18 20:26:32 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-04-18 20:26:32 +0300 |
commit | 2c5fa193541eb8b74974731d01312f73951bca17 (patch) | |
tree | 4cbc833a14487543d9ef38e66f6028d82f3978af /src/lib/ContentSection/ContentSection.tsx | |
parent | 9941754be106accd5ea8ce4b6f8229dd6f4afc9b (diff) | |
download | react-benzin-2c5fa193541eb8b74974731d01312f73951bca17.tar.gz |
style: correct some errors with eslint --fix
Diffstat (limited to 'src/lib/ContentSection/ContentSection.tsx')
-rw-r--r-- | src/lib/ContentSection/ContentSection.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/ContentSection/ContentSection.tsx b/src/lib/ContentSection/ContentSection.tsx index ba8b882..6b27bba 100644 --- a/src/lib/ContentSection/ContentSection.tsx +++ b/src/lib/ContentSection/ContentSection.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { Typography, Divider, - makeStyles + makeStyles, } from '@material-ui/core'; @@ -30,18 +30,17 @@ const ContentSection: React.FC<PropTypes> = ({ sectionName, children, level = 0 if (level > 6) level = 6; type Variant = 'h3' | 'h4' | 'h5' | 'h6'; - const variant: Variant = 'h' + level as Variant; + const variant: Variant = `h${level}` as Variant; return ( <> <Typography variant={variant}>{sectionName}</Typography> - <Divider variant="middle"/> + <Divider variant="middle" /> <Typography component="div" className={classes.content}> {children} </Typography> </> ); - }; |