Skip to content
Snippets Groups Projects
Commit 41cca42f authored by Anthony's avatar Anthony
Browse files

Thumbnail dumb working

parent 6598e6fe
No related branches found
No related tags found
1 merge request!17WIP thumbnail on accordion.
...@@ -18,11 +18,15 @@ export class AnnotationManifestsItem extends Component { ...@@ -18,11 +18,15 @@ export class AnnotationManifestsItem extends Component {
super(props); super(props);
this.handleOpenManifestSideToSide = this.handleOpenManifestSideToSide.bind(this); this.handleOpenManifestSideToSide = this.handleOpenManifestSideToSide.bind(this);
/* const { }
/** */
componentDidMount() {
const {
fetchManifest, manifestId, ready, isFetching, error, provider, fetchManifest, manifestId, ready, isFetching, error, provider,
} = props; } = this.props;
if (!ready && !error && !isFetching && provider !== 'file') fetchManifest(manifestId); */ if (!ready && !error && !isFetching && provider !== 'file') fetchManifest(manifestId);
} }
/** */ /** */
...@@ -35,13 +39,22 @@ export class AnnotationManifestsItem extends Component { ...@@ -35,13 +39,22 @@ export class AnnotationManifestsItem extends Component {
/** */ /** */
render() { render() {
const { const {
classes, t, language, manifestId, classes, t, language, manifestId, thumbnail
} = this.props; } = this.props;
return ( return (
<Typography> <Typography>
<Card className={classes.root}> <Card className={classes.root}>
<CardActionArea> <CardActionArea>
{
thumbnail && (
<CardMedia
component="img"
height="140"
image={[thumbnail]}
alt="green iguana"
/>
)}
<CardContent> <CardContent>
<Typography> <Typography>
{ manifestId } { manifestId }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment