From 88fa3a52342b5886f8438d4933160bbdb05cff19 Mon Sep 17 00:00:00 2001 From: Sorin Chis Date: Fri, 15 Mar 2024 15:14:14 +0200 Subject: [PATCH] fix format --- src/components/PoolSaturationTag.js | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/PoolSaturationTag.js b/src/components/PoolSaturationTag.js index 7822d41..8cecc0b 100644 --- a/src/components/PoolSaturationTag.js +++ b/src/components/PoolSaturationTag.js @@ -59,21 +59,21 @@ function PoolSaturationTag({ value }: Props): Node { let backgroundColor = null; switch (true) { - case value > 0.9: - backgroundColor = '#FFC3D3'; - break; - case value > 0.8: - backgroundColor = '#FCE4BC'; - break; - case value > 0.7: - backgroundColor = '#FBF6B6'; - break; - case value > 0.6: - backgroundColor = '#DDFBB6'; - break; - default: - backgroundColor = '#C9EDE5'; - break; + case value > 0.9: + backgroundColor = '#FFC3D3'; + break; + case value > 0.8: + backgroundColor = '#FCE4BC'; + break; + case value > 0.7: + backgroundColor = '#FBF6B6'; + break; + case value > 0.6: + backgroundColor = '#DDFBB6'; + break; + default: + backgroundColor = '#C9EDE5'; + break; } return (