From b61056b56e649338b95ba491940ba52e79a4c9e5 Mon Sep 17 00:00:00 2001 From: Jake Gehrke Date: Thu, 25 Apr 2024 00:16:58 -0700 Subject: [PATCH] Added drip shadow to IOS --- components/input/navigationRectangle.js | 153 ++++++++++++++---------- 1 file changed, 87 insertions(+), 66 deletions(-) diff --git a/components/input/navigationRectangle.js b/components/input/navigationRectangle.js index 122235dd..3a46191c 100644 --- a/components/input/navigationRectangle.js +++ b/components/input/navigationRectangle.js @@ -4,98 +4,119 @@ import { Divider, Icon, Text } from "react-native-paper"; import { getIconByKey } from "~/Utility"; export default function NavigationRectangle({ drillInfo, inputValues, shot }) { - console.log("inputValues", inputValues); + // console.log("inputValues", inputValues); const keys = Object.keys(inputValues); return ( - - - Shot {shot.shotNum} - - - + + + Shot {shot.shotNum} + + + - {drillInfo.requirements.map((requirement) => ( - - {requirement.prompt}: - - {" "} - {shot.items[requirement.name]} {requirement.distanceMeasure} + + {drillInfo.requirements.map((requirement) => ( + + {requirement.prompt}: + + {" "} + {shot.items[requirement.name]} {requirement.distanceMeasure} + - - ))} - + ))} + - {keys.length > 0 && !keys.some((key) => !inputValues[key]) && ( - - )} + {keys.length > 0 && !keys.some((key) => !inputValues[key]) && ( + + )} - - {drillInfo.inputs.map((input, id) => { - if (inputValues[input.id]) { - return ( - - - - {inputValues[input.id]} {input.distanceMeasure} - - - ); - } - })} + + {drillInfo.inputs.map((input, id) => { + if (inputValues[input.id]) { + return ( + + + + {inputValues[input.id]} {input.distanceMeasure} + + + ); + } + })} +