From dfe6aeaa476faa410751567eae1f1d32be491813 Mon Sep 17 00:00:00 2001 From: PramitaUp Date: Sat, 22 Feb 2025 11:19:18 -0600 Subject: [PATCH] Styles fix (#59) * removed second table from summary page * test commit * testing spacing in summary page * fixed blue color --------- Co-authored-by: James4356 --- app/auto.tsx | 3 ++- app/components/Header.tsx | 2 +- app/summary.tsx | 5 ++--- app/views/ReefAlgaeView.tsx | 9 +++++++-- package-lock.json | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/auto.tsx b/app/auto.tsx index 803e8eb..f89b848 100644 --- a/app/auto.tsx +++ b/app/auto.tsx @@ -12,8 +12,8 @@ export default function App() { - + @@ -35,4 +35,5 @@ const styles = StyleSheet.create({ // alignItems: 'center', // justifyContent: 'center', }, + }); diff --git a/app/components/Header.tsx b/app/components/Header.tsx index e89bc32..b9d324b 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -26,7 +26,7 @@ function PageHeader({ title, pageNumber, previous, showTeam }: PageHeaderProps) if (data["driverStation"].includes("Red")) { setChipColor("#f54242"); } else { - setChipColor("#5252aa"); + setChipColor("#2149a6"); } }); }, []); diff --git a/app/summary.tsx b/app/summary.tsx index 2e88723..f5b6143 100644 --- a/app/summary.tsx +++ b/app/summary.tsx @@ -11,9 +11,7 @@ export default function App() { return ( - - - + { @@ -39,6 +37,7 @@ const styles = StyleSheet.create({ flex: 1, backgroundColor: '#fff', rowGap: 15 + // alignItems: 'center', // justifyContent: 'center', }, diff --git a/app/views/ReefAlgaeView.tsx b/app/views/ReefAlgaeView.tsx index 838e08b..2ac70aa 100644 --- a/app/views/ReefAlgaeView.tsx +++ b/app/views/ReefAlgaeView.tsx @@ -1,8 +1,10 @@ import { getMatchData, updateReefScores } from '../api/data'; import MathBlock from '../components/MathBlock'; -import { View } from 'react-native'; +import { View, StyleSheet } from 'react-native'; import SectionTitle from '../components/SectionTitle'; import { GamePhase, ReefLevel } from '../api/data_types'; +import React from 'react'; +import AlgaeView from './AlgaeView'; interface ReefAlgaeViewProps { phase: GamePhase; @@ -16,6 +18,7 @@ function ReefAlgaeView({ phase }: ReefAlgaeViewProps) { return ( + Reef { updateReefScores(phase, "L4", count); @@ -32,10 +35,12 @@ function ReefAlgaeView({ phase }: ReefAlgaeViewProps) { { updateReefScores(phase, "L1", count); }} oldCount={getLevelData("L1")} /> + ) -} +} + export default ReefAlgaeView; diff --git a/package-lock.json b/package-lock.json index e1527c7..ac7618e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13214,4 +13214,4 @@ } } } -} \ No newline at end of file +}