diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-08-14 16:58:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 16:58:41 +0300 |
commit | 9073af9512687e724a5237d55a85656abb3305e5 (patch) | |
tree | d4a96f03365fac6f36b3826e2c18c24ee3db0974 /src/containers/Home | |
parent | a6d2d1d833116772178125b3e047e0811131c0e0 (diff) | |
parent | d309f375af53dbb3415e2f892dc85e495ea0cf4c (diff) | |
download | which-ui-9073af9512687e724a5237d55a85656abb3305e5.tar.gz |
Merge pull request #82 from which-ecosystem/better-ux
Material images (loading, transitions, error)
Diffstat (limited to 'src/containers/Home')
-rw-r--r-- | src/containers/Home/Home.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/containers/Home/Home.tsx b/src/containers/Home/Home.tsx index c0ca00e..072e2fa 100644 --- a/src/containers/Home/Home.tsx +++ b/src/containers/Home/Home.tsx @@ -13,10 +13,11 @@ import TrendingUpIcon from '@material-ui/icons/TrendingUp'; import { Rating } from '@material-ui/lab'; import { Feedback } from 'which-types'; -import { useAuth } from '../../hooks/useAuth'; -import { useFeedback } from '../../hooks/APIClient'; import ReviewCard from '../../components/ReviewCard/ReviewCard'; +import Image from '../../components/Image/Image'; import ReviewForm from './ReviewForm'; +import { useAuth } from '../../hooks/useAuth'; +import { useFeedback } from '../../hooks/APIClient'; const useStyles = makeStyles(theme => ({ root: { @@ -109,7 +110,7 @@ const Home: React.FC = () => { <Grid item xs={12} md={4}> <Grid container direction="column" spacing={1} alignItems="center"> <Grid item> - <img src={`${process.env.PUBLIC_URL}/which-logo-512.png`} alt="logo" className={classes.logo} /> + <Image src={`${process.env.PUBLIC_URL}/which-logo-512.png`} alt="logo" className={classes.logo} /> </Grid> <Grid item> {rating !== 0 && <Rating value={rating} readOnly size="large" />} |