[UI] updated ProjectCard

This commit is contained in:
Ruidy Nemausat 2020-04-17 13:01:23 +02:00
parent 4469039757
commit 5d5549e1ba
2 changed files with 4 additions and 7 deletions

View file

@ -55,3 +55,4 @@
- [ ] Refactor TabPanels code
- [ ] Refactor Lists code
- [ ] Query project members in UserPage
- [ ] Query progression info in UserPage

View file

@ -18,15 +18,14 @@ interface IProps {
const useStyles = makeStyles((theme: Theme) =>
createStyles({
progress: {
paddingTop: theme.spacing(4),
paddingBottom: theme.spacing(4),
paddingTop: theme.spacing(2),
},
})
);
const ProjectCard: FC<IProps> = ({
title,
remainingDays,
remainingDays = "",
link = "#",
members,
progress = 0,
@ -38,10 +37,7 @@ const ProjectCard: FC<IProps> = ({
<>
{members && <AvatarList users={members} />}
<div className={classes.progress}>
{/* <Typography variant="body2" component="p">
Progression:
</Typography> */}
<ProgressInfo />
<ProgressInfo remainingDays={getRemainingdays(remainingDays)} />
</div>
</>
);