diff --git a/app/index.tsx b/app/index.tsx index 7c7e016..5183247 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -1,9 +1,17 @@ import React, { useState } from "react"; -import { ScrollView, Text } from "react-native"; +import { ScrollView, Text, Alert, Button } from "react-native"; import PlayerSelector from "@/components/PlayerSelector"; +import BuyInSelector from "@/components/BuyInSelector"; const IndexScreen = () => { const [playerCount, setPlayerCount] = useState(2); + const [buyInAmount, setBuyInAmount] = useState(null); + + const handleSave = () => { + if (buyInAmount === null) { + Alert.alert("Error", "Please select a valid buy-in amount"); + } + }; return ( @@ -15,7 +23,16 @@ const IndexScreen = () => { playerCount={playerCount} setPlayerCount={setPlayerCount} /> + + + +