From 43a97161727c80391533454b2e33cc60a0875a68 Mon Sep 17 00:00:00 2001 From: David Westgate Date: Mon, 10 Feb 2025 19:46:27 -0800 Subject: [PATCH 1/4] initial working feature --- app/index.tsx | 10 ++ components/ChipsSelector.tsx | 159 +++++++++++++++++++++ components/__tests__/ChipsSelector.test.ts | 0 3 files changed, 169 insertions(+) create mode 100644 components/ChipsSelector.tsx create mode 100644 components/__tests__/ChipsSelector.test.ts diff --git a/app/index.tsx b/app/index.tsx index 5183247..2f107b4 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -2,10 +2,13 @@ import React, { useState } from "react"; import { ScrollView, Text, Alert, Button } from "react-native"; import PlayerSelector from "@/components/PlayerSelector"; import BuyInSelector from "@/components/BuyInSelector"; +import ChipsSelector from "@/components/ChipsSelector"; const IndexScreen = () => { const [playerCount, setPlayerCount] = useState(2); const [buyInAmount, setBuyInAmount] = useState(null); + const [numberOfChips, setNumberOfChips] = useState(5); + const [totalChipsCount, setTotalChipsCount] = useState([]); const handleSave = () => { if (buyInAmount === null) { @@ -26,6 +29,13 @@ const IndexScreen = () => { + +