feat: update deposit limits and custom input placeholder in LobbyScreen

This commit is contained in:
2025-12-21 00:21:07 +01:00
parent e5fdc0c54f
commit 1e58848629

View File

@@ -79,7 +79,7 @@ export default function LobbyScreen({ user, token, onLogout, onSelectTable, onRe
}; };
const customValue = Number(customAmount); const customValue = Number(customAmount);
const customValid = Number.isFinite(customValue) && customValue >= 50 && customValue <= 100; const customValid = Number.isFinite(customValue) && customValue >= 175 && customValue <= 1000;
return ( return (
<LinearGradient <LinearGradient
@@ -103,8 +103,9 @@ export default function LobbyScreen({ user, token, onLogout, onSelectTable, onRe
<View style={styles.depositRow}> <View style={styles.depositRow}>
<Text style={styles.sectionTitle}>Feltöltés</Text> <Text style={styles.sectionTitle}>Feltöltés</Text>
<View style={styles.chips}> <View style={styles.chips}>
<CasinoButton label="50 Ft" onPress={() => handleDeposit(50)} variant="gold" disabled={depositLoading} /> <CasinoButton label="200 Ft" onPress={() => handleDeposit(200)} variant="gold" disabled={depositLoading} />
<CasinoButton label="100 Ft" onPress={() => handleDeposit(100)} 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} />
</View> </View>
<View style={styles.customRow}> <View style={styles.customRow}>
<View style={styles.customInputWrap}> <View style={styles.customInputWrap}>
@@ -113,14 +114,14 @@ export default function LobbyScreen({ user, token, onLogout, onSelectTable, onRe
<TextInput <TextInput
value={customAmount} value={customAmount}
onChangeText={(value) => setCustomAmount(value.replace(/[^0-9]/g, ''))} onChangeText={(value) => setCustomAmount(value.replace(/[^0-9]/g, ''))}
placeholder="pl. 75" placeholder="pl. 250"
placeholderTextColor="rgba(255,255,255,0.35)" placeholderTextColor="rgba(255,255,255,0.35)"
keyboardType="number-pad" keyboardType="number-pad"
style={styles.customInput} style={styles.customInput}
/> />
<Text style={styles.customSuffix}>Ft</Text> <Text style={styles.customSuffix}>Ft</Text>
</View> </View>
<Text style={styles.customHint}>Minimum 50 Ft, maximum 100 Ft.</Text> <Text style={styles.customHint}>Minimum 175 Ft, maximum 1000 Ft.</Text>
</View> </View>
<CasinoButton <CasinoButton
label="Feltöltés" label="Feltöltés"