From eaf3c49fe0a29b4702ab21e4980b57ac4297e412 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Thu, 10 Oct 2024 09:24:56 +0200 Subject: [PATCH] racers table --- frontend/src/scripts/index.js | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 6e13a8f..ec27f82 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -172,7 +172,7 @@ class Main extends Component { Registrace } - {(this.state.login_status.racers || []).length > 1 && + {(this.state.login_status.racers || []).length > 0 && @@ -199,7 +199,32 @@ class Main extends Component { {this.state.status_text} } {this.state.page == "#racers" && - this.state.login_status.racers +
+ + + + + + + + + + + + + {this.state.login_status.racers.map(racer => + + + + + + + + )} + + +
JménoPřijmeníEmailTeamDatum narozeníZaplatil
{racer.first_name}{racer.last_name}{racer.email}{racer.team}{racer.date_of_birth}{racer.paid}
+
} {this.state.page == "#register_racer" &&