From 5181b36014731251292673d904f75a05d81405bb Mon Sep 17 00:00:00 2001 From: b3ni15 Date: Sun, 21 Dec 2025 00:24:36 +0100 Subject: [PATCH] feat: add quick deposit functionality and update button labels in LobbyScreen --- src/screens/LobbyScreen.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/screens/LobbyScreen.js b/src/screens/LobbyScreen.js index 0371f75..af4d8ea 100644 --- a/src/screens/LobbyScreen.js +++ b/src/screens/LobbyScreen.js @@ -78,6 +78,11 @@ export default function LobbyScreen({ user, token, onLogout, onSelectTable, onRe } }; + const quickDeposit = (amount) => { + setCustomAmount(String(amount)); + handleDeposit(amount); + }; + const customValue = Number(customAmount); const customValid = Number.isFinite(customValue) && customValue >= 175 && customValue <= 1000; @@ -101,11 +106,11 @@ export default function LobbyScreen({ user, token, onLogout, onSelectTable, onRe - Feltöltés + Gyors feltöltés - handleDeposit(200)} variant="gold" disabled={depositLoading} /> - handleDeposit(500)} variant="gold" disabled={depositLoading} /> - handleDeposit(1000)} variant="gold" disabled={depositLoading} /> + quickDeposit(200)} variant="gold" disabled={depositLoading} /> + quickDeposit(500)} variant="gold" disabled={depositLoading} /> + quickDeposit(1000)} variant="gold" disabled={depositLoading} />