From 976bb7c1890148edba32578354c1a98e12ba7fe9 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 14 Nov 2023 14:56:58 +1300 Subject: [PATCH] Add activity indicator for StartPlan --- StartPlan.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/StartPlan.tsx b/StartPlan.tsx index 4a0553e..c49c23c 100644 --- a/StartPlan.tsx +++ b/StartPlan.tsx @@ -7,7 +7,12 @@ import { } from "@react-navigation/native"; import { useCallback, useMemo, useRef, useState } from "react"; import { FlatList, NativeModules, TextInput, View } from "react-native"; -import { Button, IconButton, ProgressBar } from "react-native-paper"; +import { + ActivityIndicator, + Button, + IconButton, + ProgressBar, +} from "react-native-paper"; import AppInput from "./AppInput"; import { StackParams } from "./AppStack"; import { getBestSet } from "./best.service"; @@ -204,7 +209,9 @@ export default function StartPlan() { label="Unit" /> )} - {counts && ( + {counts === undefined ? ( + + ) : ( count.name}