remove redundant title

This commit is contained in:
David Westgate 2025-02-23 15:04:49 -08:00
parent a1ace37271
commit 979b0abbff
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,7 @@
import { Stack } from "expo-router";
import React from "react";
export default function RootLayout() {
return <Stack />;
}
const RootLayout: React.FC = () => (
<Stack screenOptions={{ headerShown: true, title: "Poker Chips Helper" }} />
);
export default RootLayout;

View File

@ -6,7 +6,7 @@ import ChipsSelector from "@/components/ChipsSelector";
import ChipDistributionSummary from "@/components/ChipDistributionSummary";
import ChipDetection from "@/components/ChipDetection";
const IndexScreen = () => {
const IndexScreen: React.FC = () => {
const [playerCount, setPlayerCount] = useState(2);
const [buyInAmount, setBuyInAmount] = useState<number | null>(null);
const [numberOfChips, setNumberOfChips] = useState<number>(5);
@ -34,9 +34,6 @@ const IndexScreen = () => {
return (
<ScrollView contentContainerStyle={{ padding: 20, flexGrow: 1 }}>
<Text style={{ fontSize: 24, marginBottom: 30, marginTop: 50 }}>
Poker Chip Helper
</Text>
<PlayerSelector
playerCount={playerCount}
setPlayerCount={setPlayerCount}