From 1b444d80f494b0ad23f8008b9a61b5facf6b1507 Mon Sep 17 00:00:00 2001 From: Collin Bolles Date: Mon, 6 Jan 2025 15:19:07 -0500 Subject: [PATCH] chore: Text Update (#22) * Spelling fixes * Grammar fixes * Update units --- .../src/components/parameters/GlobalParamsView.tsx | 4 +++- .../src/components/parameters/ModelParamsView.tsx | 4 ++-- packages/frontend/src/components/results/ImageView.tsx | 2 +- packages/frontend/src/components/results/Layout.tsx | 6 +++--- packages/frontend/src/contexts/Theme.context.tsx | 9 +++++++++ packages/frontend/src/helpers/names.ts | 4 ++-- packages/frontend/src/pages/Dashboard.tsx | 4 ++-- packages/frontend/src/pages/ExperimentForm.tsx | 8 ++++---- 8 files changed, 26 insertions(+), 15 deletions(-) diff --git a/packages/frontend/src/components/parameters/GlobalParamsView.tsx b/packages/frontend/src/components/parameters/GlobalParamsView.tsx index 8b20e39..c97f1b6 100644 --- a/packages/frontend/src/components/parameters/GlobalParamsView.tsx +++ b/packages/frontend/src/components/parameters/GlobalParamsView.tsx @@ -13,7 +13,9 @@ export const GlobalParamsView: React.FC = ({ params }) => Time Step: {params.timeStep} (h/cycle) Log Frequency: {params.logFreq} - Nutrient Diffusivity: {params.defaultDiffConst} (cm^2/s) + + Nutrient Diffusivity: {params.defaultDiffConst} (cm2/s) + Default VMax: {params.defaultVMax} (mmol/gh) Default KM: {params.defaultKm} (M) Max Cycles: {params.maxCycles} diff --git a/packages/frontend/src/components/parameters/ModelParamsView.tsx b/packages/frontend/src/components/parameters/ModelParamsView.tsx index 64e0d9f..04dfef3 100644 --- a/packages/frontend/src/components/parameters/ModelParamsView.tsx +++ b/packages/frontend/src/components/parameters/ModelParamsView.tsx @@ -29,8 +29,8 @@ const SingleModelParamsView: React.FC<{ params: ModelParametersInput }> = ({ par Neutral Drift: {params.neutralDrift ? 'True' : 'False'} Neutral Drift Amp: {params.neutralDriftAmp} Death Rate: {params.deathRate} - Linear Diffusivity: {params.linearDiffusivity} (cm^2/s) - Nonlinear Diffusivity: {params.nonlinearDiffusivity} (cm^2/sg) + Linear Diffusivity: {params.linearDiffusivity} (cm²/s) + Nonlinear Diffusivity: {params.nonlinearDiffusivity} (cm²/sg) ); diff --git a/packages/frontend/src/components/results/ImageView.tsx b/packages/frontend/src/components/results/ImageView.tsx index e26de8d..49bec77 100644 --- a/packages/frontend/src/components/results/ImageView.tsx +++ b/packages/frontend/src/components/results/ImageView.tsx @@ -11,7 +11,7 @@ export const ImageView: React.FC = ({ src }) => { component="img" src={src} sx={{ - maxWidth: '75%' + maxWidth: '100%' }} /> diff --git a/packages/frontend/src/components/results/Layout.tsx b/packages/frontend/src/components/results/Layout.tsx index 3c9208d..4a7f464 100644 --- a/packages/frontend/src/components/results/Layout.tsx +++ b/packages/frontend/src/components/results/Layout.tsx @@ -19,12 +19,12 @@ export const LayoutVisualization: React.FC = ({ reques Layout Visualizations - View Type + View Type