Commit 2c5212ff by Jan Hrabal

UI improvements

parent f1c87063
......@@ -45,32 +45,39 @@ const Project = ({ project }) => {
</ListItemAvatar>
<ListItemText
primary={ project.name }
/>
<ListItemText
secondary={
<React.Fragment>
<Typography
component="div"
variant="body2"
color="textPrimary"
>
To languages:
</Typography>
{ Array.isArray(project.targetLanguages) && project.targetLanguages.map(l => (<Chip key={ l } label={ l }/>)) }
</React.Fragment>
}
/>
<ListItemText
secondary={
<React.Fragment>
<Typography
component="span"
variant="body2"
color="textPrimary"
>
To languages:
</Typography>
{ Array.isArray(project.targetLanguages) && project.targetLanguages.map(l => (<Chip key={ l } label={ l }/>)) }
<div>
<Typography
component="div"
variant="body2"
color="textPrimary"
>
Status: { project.status }
</Typography>
</div>
<div>
<Typography
component="div"
variant="body2"
color="textPrimary"
>
From language:
</Typography>
<Chip label={ project.sourceLanguage }/>
</div>
<div>
<Typography
component="span"
variant="body2"
color="textPrimary"
>
To languages:
</Typography>
{ Array.isArray(project.targetLanguages) && project.targetLanguages.map(l => (<Chip key={ l } label={ l }/>)) }
</div>
</React.Fragment>
}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment