Skip to content

Commit

Permalink
Add grow animation
Browse files Browse the repository at this point in the history
  • Loading branch information
vallezw committed Apr 1, 2021
1 parent fb4bf1f commit db748a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/Components/ComponentUtils/ImageUploadCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import Grow from '@material-ui/core/Grow';

// Components
import StyledDropzone from './StyledDropzone'
Expand Down Expand Up @@ -41,11 +42,12 @@ const useStyles = makeStyles({

export default function ImageUploadCard(props) {
const classes = useStyles();

const checked = true
return (
<div>
{!props.loading?
<div className="cardContainer">
<Grow in={checked}>
<Card className={classes.root}>
<CardContent>
<p className={classes.headerText}>Upload your image</p>
Expand All @@ -54,6 +56,7 @@ export default function ImageUploadCard(props) {
<UploadButton handleLoading={props.handleLoading} handleResponse={props.shandleResponse} />
</CardContent>
</Card>
</Grow>
</div>
:
<div className="loadingContainer">
Expand Down

0 comments on commit db748a5

Please sign in to comment.