Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/components/form/sections/collapsibleSubSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import Accordion, { AccordionProps } from '@mui/material/Accordion';
import AccordionDetails from '@mui/material/AccordionDetails';
import AccordionSummary from '@mui/material/AccordionSummary';
import Stack from '@mui/material/Stack';
import useTheme from '@mui/material/styles/useTheme';
import Typography from '@mui/material/Typography/Typography';

Expand Down Expand Up @@ -46,12 +47,18 @@ export function CollapsibleSubSection({
sx={{ backgroundColor: 'transparent', paddingLeft: 0 }}
expandIcon={<ExpandMoreIcon />}
>
{title && <Typography variant="h6">{title}</Typography>}
{subtitle && (
<Typography variant="body2" sx={{ color: palette.text.secondary }}>
{subtitle}
</Typography>
)}
<Stack
sx={{
gap: 1,
}}
>
{title && <Typography variant="h6">{title}</Typography>}
{subtitle && (
<Typography variant="body2" color={palette.text.secondary}>
{subtitle}
</Typography>
)}
</Stack>
</AccordionSummary>
<AccordionDetails sx={{ paddingLeft: 0 }}>
<SubSection>{children}</SubSection>
Expand Down