From ee64fc64a9d8893420042e6176233981bd6c78f7 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Sun, 13 Oct 2024 15:11:13 +0200 Subject: [PATCH] Eshop --- frontend/src/scripts/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index b1643f3..e6fb28b 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -208,6 +208,11 @@ class Main extends Component { } + {Object.keys(this.state.login_status).length > 0 && + + } @@ -219,6 +224,18 @@ class Main extends Component {
{this.setState({status: "", status_text:""})}}> {this.state.status_text}
} + {this.state.page == "#eshop" && +
+ {this.state.products.map(product => +
+ ... +
+
{product.name}
+

{product.description}

+ e.preventDefault()} class="btn btn-primary">Přidat do košíku +
+
)} +
} {this.state.page == "#racers" &&