From cbb3be2532fff8a3034f71199f1c19b2c410d7aa Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Sun, 20 Mar 2022 13:39:04 -0700 Subject: [PATCH] remove - --- cli/src/components/Setup.tsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/cli/src/components/Setup.tsx b/cli/src/components/Setup.tsx index 9892f8c7b..3715d7e55 100644 --- a/cli/src/components/Setup.tsx +++ b/cli/src/components/Setup.tsx @@ -52,7 +52,7 @@ const Setup = () => { {updates.map(({ stage, result, description }, i) => ( - {description} -{" "} + {description}{" "} ({getStageNumber(config, stage)} of {getTotalSteps(config)}) @@ -166,9 +166,17 @@ function getStageNumber(config: Config, stage: Stage) { case "registry": return config.mongo?.startConfig ? 2 : 1; case "core": - return 1 + (config.mongo?.startConfig ? 1 : 0) + (config.registry?.startConfig ? 1 : 0); + return ( + 1 + + (config.mongo?.startConfig ? 1 : 0) + + (config.registry?.startConfig ? 1 : 0) + ); case "docs": - return 2 + (config.mongo?.startConfig ? 1 : 0) + (config.registry?.startConfig ? 1 : 0); + return ( + 2 + + (config.mongo?.startConfig ? 1 : 0) + + (config.registry?.startConfig ? 1 : 0) + ); case "periphery": return 1; } @@ -178,7 +186,11 @@ function getTotalSteps(config: Config) { if (config.periphery) { return 1; } else { - return 2 + (config.mongo?.startConfig ? 1 : 0) + (config.registry?.startConfig ? 1 : 0); + return ( + 2 + + (config.mongo?.startConfig ? 1 : 0) + + (config.registry?.startConfig ? 1 : 0) + ); } }