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