Skip to content

Commit

Permalink
Merge pull request #613 from pkpdapp-team/PKPDX-34
Browse files Browse the repository at this point in the history
PKPDX 34
  • Loading branch information
wniestroj authored Dec 3, 2024
2 parents 647a1d5 + 18209ee commit 0a1369f
Show file tree
Hide file tree
Showing 13 changed files with 888 additions and 423 deletions.
4 changes: 3 additions & 1 deletion frontend-v2/src/components/DynamicTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface DynamicTabsProps {
tabErrors?: { [key: string]: string };
isOtherSpeciesSelected?: boolean;
tumourModelWithNoKillModel?: boolean;
marginBottom?: number;
}

interface TabPanelProps {
Expand All @@ -58,6 +59,7 @@ export const DynamicTabs: FC<PropsWithChildren<DynamicTabsProps>> = ({
tabErrors,
isOtherSpeciesSelected,
tumourModelWithNoKillModel,
marginBottom = 5,
children,
}) => {
const [currentTab, setCurrentTab] = useState(0);
Expand Down Expand Up @@ -113,7 +115,7 @@ export const DynamicTabs: FC<PropsWithChildren<DynamicTabsProps>> = ({
return (
<TabContext.Provider value={{ currentTab, setCurrentTab }}>
<Box sx={{ width: "100%" }}>
<Box sx={{ borderBottom: 1, borderColor: "divider", marginBottom: 5 }}>
<Box sx={{ borderBottom: 1, borderColor: "divider", marginBottom: marginBottom }}>
<Tabs
value={currentTab}
onChange={handleChange}
Expand Down
1 change: 1 addition & 0 deletions frontend-v2/src/components/SelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function SelectField<T extends FieldValues>({
{getLabel(label || "", Boolean(rules?.required))}
</InputLabel>
<Select
sx={sx}
size={size}
labelId={labelId}
name={name}
Expand Down
Loading

0 comments on commit 0a1369f

Please sign in to comment.