From 589f4f9ff512abc59d226184e5978efa8d556222 Mon Sep 17 00:00:00 2001 From: katamartin Date: Mon, 15 Jul 2024 15:36:44 -0400 Subject: [PATCH] Clean up unused component --- .../components/carbonate-slider.js | 173 ------------------ 1 file changed, 173 deletions(-) delete mode 100644 articles/oae-efficiency-explainer/components/carbonate-slider.js diff --git a/articles/oae-efficiency-explainer/components/carbonate-slider.js b/articles/oae-efficiency-explainer/components/carbonate-slider.js deleted file mode 100644 index 3346fc6a..00000000 --- a/articles/oae-efficiency-explainer/components/carbonate-slider.js +++ /dev/null @@ -1,173 +0,0 @@ -import React from 'react' -import { Box, Flex, Label, Checkbox, Slider } from 'theme-ui' - -const CarbonateSlider = ({ - data, - slidableVariable, - varIndex, - setVarIndex, - equilibrated, - setEquilibrated, -}) => { - return ( - - {data.dic && ( - <> - - - - {data.dic[varIndex] > 0 - ? `+${data.dic[varIndex].toFixed()}` - : data.dic[varIndex].toFixed()} - - - Ocean carbon (DIC) - - - - - {data.ph[varIndex] > 0 - ? `+${data.ph[varIndex].toFixed(2)}` - : data.ph[varIndex].toFixed(2)} - - - pH - - - - - - - {data.co2[varIndex] > 0 - ? `+${data.co2[varIndex].toFixed()}` - : data.co2[varIndex].toFixed()} - - - CO₂ - - - - - {data.hco3[varIndex] > 0 - ? `+${data.hco3[varIndex].toFixed()}` - : data.hco3[varIndex].toFixed()} - - - HCO₃ - - - - - {data.co3[varIndex] > 0 - ? `+${data.co3[varIndex].toFixed()}` - : data.co3[varIndex].toFixed()} - - - CO₃ - - - - - )} - - (∆µmol / kg seawater) - - - setVarIndex(parseFloat(e.target.value))} - min={0} - max={ - data && slidableVariable.key in data - ? Object.keys(data[slidableVariable.key]).length - 1 - : 0 - } - step={1} - /> - - - - + - {data[slidableVariable.key] && - data[slidableVariable.key][varIndex].toFixed(0)} - - {slidableVariable.name} - {equilibrated !== undefined && ( - - )} - - - ) -} - -export default CarbonateSlider