Skip to content

Commit db748a5

Browse files
committed
Add grow animation
1 parent fb4bf1f commit db748a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/Components/ComponentUtils/ImageUploadCard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import { makeStyles } from '@material-ui/core/styles';
33
import Card from '@material-ui/core/Card';
44
import CardContent from '@material-ui/core/CardContent';
5+
import Grow from '@material-ui/core/Grow';
56

67
// Components
78
import StyledDropzone from './StyledDropzone'
@@ -41,11 +42,12 @@ const useStyles = makeStyles({
4142

4243
export default function ImageUploadCard(props) {
4344
const classes = useStyles();
44-
45+
const checked = true
4546
return (
4647
<div>
4748
{!props.loading?
4849
<div className="cardContainer">
50+
<Grow in={checked}>
4951
<Card className={classes.root}>
5052
<CardContent>
5153
<p className={classes.headerText}>Upload your image</p>
@@ -54,6 +56,7 @@ export default function ImageUploadCard(props) {
5456
<UploadButton handleLoading={props.handleLoading} handleResponse={props.shandleResponse} />
5557
</CardContent>
5658
</Card>
59+
</Grow>
5760
</div>
5861
:
5962
<div className="loadingContainer">

0 commit comments

Comments
 (0)