From 69fbf1a88d7abb36ad0281de165e4769b69e1f44 Mon Sep 17 00:00:00 2001 From: niestrow Date: Fri, 29 Nov 2024 16:23:22 +0100 Subject: [PATCH 1/2] PKPDX-34 --- frontend-v2/src/components/DynamicTabs.tsx | 4 +- frontend-v2/src/components/SelectField.tsx | 1 + .../model/AdditionalParametersRow.tsx | 371 ++++++++++++++++++ frontend-v2/src/features/model/CodeModal.tsx | 56 +++ .../src/features/model/MapVariablesTab.tsx | 256 ++++++++---- frontend-v2/src/features/model/Model.tsx | 81 ++-- .../src/features/model/PKPDModelTab.tsx | 55 ++- .../src/features/model/ParameterRow.tsx | 23 +- .../src/features/model/ParametersTab.tsx | 70 ++-- .../src/features/model/VariableRow.tsx | 194 +-------- .../model/secondary/SecondaryParameters.tsx | 5 +- .../model/secondary/ThresholdsTable.tsx | 93 +++-- .../model/secondary/TimeIntervalsTable.tsx | 106 +++-- 13 files changed, 892 insertions(+), 423 deletions(-) create mode 100644 frontend-v2/src/features/model/AdditionalParametersRow.tsx create mode 100644 frontend-v2/src/features/model/CodeModal.tsx diff --git a/frontend-v2/src/components/DynamicTabs.tsx b/frontend-v2/src/components/DynamicTabs.tsx index b83e674ba..c8319b830 100644 --- a/frontend-v2/src/components/DynamicTabs.tsx +++ b/frontend-v2/src/components/DynamicTabs.tsx @@ -37,6 +37,7 @@ interface DynamicTabsProps { tabErrors?: { [key: string]: string }; isOtherSpeciesSelected?: boolean; tumourModelWithNoKillModel?: boolean; + marginBottom?: number; } interface TabPanelProps { @@ -58,6 +59,7 @@ export const DynamicTabs: FC> = ({ tabErrors, isOtherSpeciesSelected, tumourModelWithNoKillModel, + marginBottom = 5, children, }) => { const [currentTab, setCurrentTab] = useState(0); @@ -113,7 +115,7 @@ export const DynamicTabs: FC> = ({ return ( - + ({ {getLabel(label || "", Boolean(rules?.required))} +