diff options
| author | eug-vs <eug-vs@keemail.me> | 2020-08-14 16:51:19 +0300 | 
|---|---|---|
| committer | eug-vs <eug-vs@keemail.me> | 2020-08-14 16:51:19 +0300 | 
| commit | e8519bdddd31a33ace25ffbcb73273c1573e9c33 (patch) | |
| tree | efa913c4448e62060cba5a6b03e2d94c42dec46b /src/components/Image/BackgroundImage.tsx | |
| parent | c5cacacfadf12c9321e932ce2fc3fa669b4c8807 (diff) | |
| download | which-ui-e8519bdddd31a33ace25ffbcb73273c1573e9c33.tar.gz | |
feat: apply cool transitions to Image
Diffstat (limited to 'src/components/Image/BackgroundImage.tsx')
| -rw-r--r-- | src/components/Image/BackgroundImage.tsx | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Image/BackgroundImage.tsx b/src/components/Image/BackgroundImage.tsx index 824f667..e749d10 100644 --- a/src/components/Image/BackgroundImage.tsx +++ b/src/components/Image/BackgroundImage.tsx @@ -7,7 +7,7 @@ interface PropTypes {    alt?: string;  } -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles({    root: {      position: 'absolute',      width: '100%', @@ -19,7 +19,7 @@ const useStyles = makeStyles(theme => ({      width: '100%',      height: '100%'    } -})); +});  const BackgroundImage: React.FC<PropTypes> = ({ src, alt }) => {    const classes = useStyles(); @@ -28,8 +28,8 @@ const BackgroundImage: React.FC<PropTypes> = ({ src, alt }) => {      <picture className={classes.root}>        <Image src={src} alt={alt} className={classes.image} />      </picture> -  ) -} +  ); +};  export default BackgroundImage;  |