Skip to content
Snippets Groups Projects
Commit bdcb243f authored by Thomas Bouquet's avatar Thomas Bouquet
Browse files

ignore

parent 29584421
Branches
No related tags found
No related merge requests found
import React,{useState,useEffect} from "react";
import { MDBRow, MDBCol, MDBInput, MDBBtn, MDBCard, MDBCardBody, MDBModalFooter, MDBIcon, MDBContainer } from 'mdbreact';
import axios from 'axios';
import AddParticipantIfNotExists from "./Autocomplete/AddParticipantIfNotExists";
import { useIsParticipant } from "../../hooks/authTools";
function Submit (props) {
......@@ -33,11 +31,12 @@ function Submit (props) {
equipe: props.equipe.value,
participant: 100//props.participant.value
})
.then(() => {
axios.post('/api/admin/new_participant_with_id',
{
id: 100,//props.participant.value,
name: props.participant.label
})
})})
.then(() => {
alert("Score ajouté");
window.location='/Input';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment