From f2bf69b6c6fb55c21758bb29b20acece56040dfd Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Tue, 28 Nov 2023 14:33:00 +0000 Subject: [PATCH] small improvements to the billing calculator --- .../components/billing/PricingCalculator.tsx | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/apps/webapp/app/components/billing/PricingCalculator.tsx b/apps/webapp/app/components/billing/PricingCalculator.tsx index ce2e18d54..620686756 100644 --- a/apps/webapp/app/components/billing/PricingCalculator.tsx +++ b/apps/webapp/app/components/billing/PricingCalculator.tsx @@ -50,7 +50,7 @@ function ConcurrentRunsSlider() { aria-label="Concurrent Runs slider" /> -
+
{concurrentRuns.map((run, i) => { const concurrrentRunsLabels = Object.values(run)[0]; return ( @@ -72,20 +72,16 @@ function ConcurrentRunsSlider() { } const Runs = [ - { 10_000: "10k" }, - { 20_000: "20k" }, - { 150_000: "150k" }, - { 500_000: "500k" }, - { 1_000_000: "1m" }, - { 2_500_000: "2.5m" }, - { 6_250_000: "6.25m" }, - { 6_250_001: "6.25m+" }, + { value: 10_000, label: "10k" }, + { value: 20_000, label: "20k" }, + { value: 150_000, label: "150k" }, + { value: 500_000, label: "500k" }, + { value: 1_000_000, label: "1m" }, + { value: 2_500_000, label: "2.5m" }, + { value: 6_250_000, label: "6.25m" }, + { value: 6_250_001, label: "6.25m+" }, ]; -const lastItemRuns = Runs[Runs.length - 1]; -const maxItemsRuns = Number(Object.keys(lastItemRuns)[0]); -const stepRuns = maxItemsRuns / Runs.length; - function RunsSlider() { return (
@@ -102,8 +98,8 @@ function RunsSlider() {