From 53f44ed5a034abf9ca0515af7f17e578f9182d43 Mon Sep 17 00:00:00 2001 From: Jonas Haugland Date: Fri, 22 Apr 2022 14:14:39 +0200 Subject: [PATCH] Clean up --- src/client/src/TournamentManager.js | 34 +++-------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/src/client/src/TournamentManager.js b/src/client/src/TournamentManager.js index 1f64abb..56190f4 100644 --- a/src/client/src/TournamentManager.js +++ b/src/client/src/TournamentManager.js @@ -80,12 +80,6 @@ let submitChanges = curryTournamentId => event => { let deleteTournament = tournamentId => event => { console.log(tournamentId); event.preventDefault(); - //TODO: https://mui.com/components/dialogs/ - - // let certain = window.confirm("Are you sure? Click OK to delete tournament"); - // if (!certain) { - // return; - // } fetch(process.env.REACT_APP_API_URL + `/tournament/${tournamentId}`, { method: "DELETE", @@ -197,15 +191,15 @@ function ConfirmationDialogRaw(props) { open={open} {...other} > - Yes or No + Delete tournament? - Test + Are you sure you want to delete the tournament? This action is not reversible! - + ); @@ -252,28 +246,6 @@ export default function TournamentManager(props) { - {/* - - {"Delete Tournament?"} - - - - Are you sure? Click Confirm to delete tournament - - - - - - - */} - ); }