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

Corrigons un oubli

parent 16a1ac20
Branches
No related tags found
No related merge requests found
import React, {Component} from 'react'
import {Modal, Button, Image} from 'semantic-ui-react'
import env from '.env'
class ModalSupression extends Component {
deleteToucan(id) {
fetch(`/toucan/delete/${id}`,{
fetch(`${env.backURL}/toucan/delete/${id}`,{
method: "Post"
})
.then(this.props.closeModal())
......@@ -16,7 +17,7 @@ class ModalSupression extends Component {
>
<Modal.Header style ={{textAlign:"center"}}>Veux tu vraiment supprimer ce Toucan ?</Modal.Header>
<Modal.Content>
<Image centered src={`/toucan/img/${this.props.toucanId}`} size="medium"/>
<Image centered src={`${env.backURL}/toucan/img/${this.props.toucanId}`} size="medium"/>
</Modal.Content>
<Modal.Actions style ={{textAlign:"center"}} >
<Button negative onClick={()=>this.deleteToucan(this.props.toucanId)}>Supprimer le Toucan</Button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment