diff --git a/app/content/drill/[id]/attempts/[attempt].js b/app/content/drill/[id]/attempts/[attempt].js index 4b35c7d7..4be67d8f 100644 --- a/app/content/drill/[id]/attempts/[attempt].js +++ b/app/content/drill/[id]/attempts/[attempt].js @@ -1,6 +1,4 @@ import { useLocalSearchParams } from "expo-router"; -import { doc, getDoc } from "firebase/firestore"; -import { useEffect } from "react"; import { ScrollView, StyleSheet, @@ -44,8 +42,6 @@ function Result() { let dots = []; if ( - Object.keys(drillInfo).length > 0 && - Object.keys(attempt).length > 0 && drillInfo["outputs"].includes("sideLanding") && drillInfo["outputs"].includes("carryDiff") ) { @@ -55,29 +51,6 @@ function Result() { ]); } - useEffect(() => { - // massive data fetching on refresh. May or may not get its data from cache - let mainOutputAttempt = ""; - getDoc(doc(db, "teams", "1", "drills", drillId)).then((doc) => { - // get drill data - if (doc.exists()) { - setDrillInfo(doc.data()); - console.log("got drill data", mainOutputAttempt); - } else { - // doc.data() will be undefined in this case - console.log("No such document!"); - } - }); - getDoc(doc(db, "teams", "1", "attempts", attemptId)) - .then((doc) => { - setAttempt(doc.data()); - }) - .catch((error) => { - console.log("Error getting documents: ", error); - }); - return () => {}; - }, []); - return ( <> diff --git a/app/content/drill/[id]/description.js b/app/content/drill/[id]/description.js index c23dfaf2..07331d8a 100644 --- a/app/content/drill/[id]/description.js +++ b/app/content/drill/[id]/description.js @@ -77,7 +77,6 @@ export default function Description() { if (drillInfoError) return ; - return ( - { - navigation.goBack(); - }} - color={"#F24E1E"} - /> diff --git a/app/content/profile/index.js b/app/content/profile/index.js index 8f5cfe59..6ac23d29 100644 --- a/app/content/profile/index.js +++ b/app/content/profile/index.js @@ -81,12 +81,6 @@ function Index(props) { - { - navigation.goBack(); - }} - color={"#F24E1E"} - /> { - navigation.getParent()?.setOptions({ - tabBarStyle: { display: 'none' }, - }); - })*/ return ( - OSU Golf Team - value[drillInfo["mainOutputAttempt"]], ); - console.log("data", drillInfo["mainOutputAttempt"]); const [_, setScrollPosition] = useState(0); const [movingAvgRange, setMovingAvgRange] = useState(5); @@ -132,9 +131,6 @@ export default function BarChartScreen({ drillData, drillInfo }) { }; const styles = StyleSheet.create({ - barChartComponent: { - marginTop: 13, - }, movingAvgContainer: { flexDirection: "row", alignItems: "center", @@ -216,9 +212,6 @@ export default function BarChartScreen({ drillData, drillInfo }) { fontSize: 13, color: "#333", // Adjust text color }, - scrollView: { - marginBottom: 70, - }, }); return ( @@ -277,16 +270,6 @@ export default function BarChartScreen({ drillData, drillInfo }) { style={{ pointerEvents: "none" }} /> - item.value} - > diff --git a/yarn.lock b/yarn.lock index 098a2da3..7afc1bc0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4641,7 +4641,6 @@ define-data-property@^1.1.2: es-define-property "^1.0.0" es-errors "^1.3.0" gopd "^1.0.1" - has-property-descriptors "^1.0.0" define-lazy-prop@^2.0.0: version "2.0.0" @@ -5785,7 +5784,7 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.1: +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== @@ -7217,7 +7216,7 @@ minimalistic-assert@^1.0.0: minimatch@9.0.3, minimatch@^9.0.1: version "9.0.3" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz" integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== dependencies: brace-expansion "^2.0.1" @@ -7229,13 +7228,6 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" -minimatch@^9.0.1: - version "9.0.3" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz" - integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== - dependencies: - brace-expansion "^2.0.1" - minimist@^1.2.0, minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" @@ -8290,16 +8282,6 @@ range-parser@^1.2.1, range-parser@~1.2.1: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== -raw-body@2.5.1: - version "2.5.1" - resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz" - integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== - dependencies: - bytes "3.1.2" - http-errors "2.0.0" - iconv-lite "0.4.24" - unpipe "1.0.0" - raw-body@2.5.2: version "2.5.2" resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" @@ -8372,11 +8354,6 @@ react-is@^17.0.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== -react-is@^18.0.0: - version "18.2.0" - resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz" - integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== - react-native-dropdown-picker@^5.4.6: version "5.4.6" resolved "https://registry.yarnpkg.com/react-native-dropdown-picker/-/react-native-dropdown-picker-5.4.6.tgz#3736fc468de4a295e4df8d1f65ed2eadaf9b445f"