feat: add quick deposit functionality and update button labels in LobbyScreen
This commit is contained in:
@@ -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
|
||||
</View>
|
||||
|
||||
<View style={styles.depositRow}>
|
||||
<Text style={styles.sectionTitle}>Feltöltés</Text>
|
||||
<Text style={styles.sectionTitle}>Gyors feltöltés</Text>
|
||||
<View style={styles.chips}>
|
||||
<CasinoButton label="200 Ft" onPress={() => handleDeposit(200)} variant="gold" disabled={depositLoading} />
|
||||
<CasinoButton label="500 Ft" onPress={() => handleDeposit(500)} variant="gold" disabled={depositLoading} />
|
||||
<CasinoButton label="1000 Ft" onPress={() => handleDeposit(1000)} variant="gold" disabled={depositLoading} />
|
||||
<CasinoButton label="200 Ft" onPress={() => quickDeposit(200)} variant="gold" disabled={depositLoading} />
|
||||
<CasinoButton label="500 Ft" onPress={() => quickDeposit(500)} variant="gold" disabled={depositLoading} />
|
||||
<CasinoButton label="1000 Ft" onPress={() => quickDeposit(1000)} variant="gold" disabled={depositLoading} />
|
||||
</View>
|
||||
<View style={styles.customRow}>
|
||||
<View style={styles.customInputWrap}>
|
||||
|
||||
Reference in New Issue
Block a user