Skip to content
Snippets Groups Projects
Commit a1927779 authored by Damien's avatar Damien
Browse files

Image au lieu img

parent b6e0560e
Branches
No related tags found
No related merge requests found
...@@ -2,7 +2,6 @@ import React, {Component} from 'react' ...@@ -2,7 +2,6 @@ import React, {Component} from 'react'
import {Table, Image, Button} from 'semantic-ui-react' import {Table, Image, Button} from 'semantic-ui-react'
class ToucanLine extends Component { class ToucanLine extends Component {
mois = ["janvier", "février", "mars", "avril", "mai", "juin","juillet","août","septembre","octobre","novembre","décembre"]
date(time){ date(time){
const dateObject = new Date(time) const dateObject = new Date(time)
const year = dateObject.getFullYear(); const year = dateObject.getFullYear();
...@@ -17,10 +16,9 @@ class ToucanLine extends Component { ...@@ -17,10 +16,9 @@ class ToucanLine extends Component {
<Table.Cell > <Table.Cell >
{console.log(this.props.toucan["_id"])} {console.log(this.props.toucan["_id"])}
<a href={`http://localhost:8000/toucan/pdf/${this.props.toucan["_id"]}`}> <a href={`http://localhost:8000/toucan/pdf/${this.props.toucan["_id"]}`}>
<img <Image
src={`/toucan/img/${this.props.toucan["_id"]}`} src={`/toucan/img/${this.props.toucan["_id"]}`}
style={{width: "50px"}} size="small"
alt="cover"
/> />
</a> </a>
</Table.Cell> </Table.Cell>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment