Skip to content

Commit

Permalink
pnpm docs:typescript:formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Nov 15, 2024
1 parent ea6bfcb commit 46e1449
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 60 deletions.
52 changes: 22 additions & 30 deletions docs/data/material/components/accordion/ControlledAccordions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ export default function ControlledAccordions() {
expandIcon={<ExpandMoreIcon />}
aria-controls="panel1bh-content"
id="panel1bh-header"
sx={{
justifyContent: 'initial',
'& .MuiAccordionSummary-expandIconWrapper': {
marginLeft: 'auto',
},
}}
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
General settings
</Typography>
<Typography sx={{ color: 'text.secondary' }}>I am an accordion</Typography>
Expand All @@ -38,22 +36,17 @@ export default function ControlledAccordions() {
</Typography>
</AccordionDetails>
</Accordion>
<Accordion
expanded={expanded === 'panel2'}
onChange={handleChange('panel2')}
sx={{
justifyContent: 'initial',
'& .MuiAccordionSummary-expandIconWrapper': {
marginLeft: 'auto',
},
}}
>
<Accordion expanded={expanded === 'panel2'} onChange={handleChange('panel2')}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel2bh-content"
id="panel2bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
Users
</Typography>
<Typography sx={{ color: 'text.secondary' }}>
Expand All @@ -68,22 +61,17 @@ export default function ControlledAccordions() {
</Typography>
</AccordionDetails>
</Accordion>
<Accordion
expanded={expanded === 'panel3'}
onChange={handleChange('panel3')}
sx={{
justifyContent: 'initial',
'& .MuiAccordionSummary-expandIconWrapper': {
marginLeft: 'auto',
},
}}
>
<Accordion expanded={expanded === 'panel3'} onChange={handleChange('panel3')}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel3bh-content"
id="panel3bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
Advanced settings
</Typography>
<Typography sx={{ color: 'text.secondary' }}>
Expand All @@ -103,7 +91,11 @@ export default function ControlledAccordions() {
aria-controls="panel4bh-content"
id="panel4bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
Personal data
</Typography>
</AccordionSummary>
Expand Down
52 changes: 22 additions & 30 deletions docs/data/material/components/accordion/ControlledAccordions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ export default function ControlledAccordions() {
expandIcon={<ExpandMoreIcon />}
aria-controls="panel1bh-content"
id="panel1bh-header"
sx={{
justifyContent: 'initial',
'& .MuiAccordionSummary-expandIconWrapper': {
marginLeft: 'auto',
},
}}
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
General settings
</Typography>
<Typography sx={{ color: 'text.secondary' }}>I am an accordion</Typography>
Expand All @@ -39,22 +37,17 @@ export default function ControlledAccordions() {
</Typography>
</AccordionDetails>
</Accordion>
<Accordion
expanded={expanded === 'panel2'}
onChange={handleChange('panel2')}
sx={{
justifyContent: 'initial',
'& .MuiAccordionSummary-expandIconWrapper': {
marginLeft: 'auto',
},
}}
>
<Accordion expanded={expanded === 'panel2'} onChange={handleChange('panel2')}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel2bh-content"
id="panel2bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
Users
</Typography>
<Typography sx={{ color: 'text.secondary' }}>
Expand All @@ -69,22 +62,17 @@ export default function ControlledAccordions() {
</Typography>
</AccordionDetails>
</Accordion>
<Accordion
expanded={expanded === 'panel3'}
onChange={handleChange('panel3')}
sx={{
justifyContent: 'initial',
'& .MuiAccordionSummary-expandIconWrapper': {
marginLeft: 'auto',
},
}}
>
<Accordion expanded={expanded === 'panel3'} onChange={handleChange('panel3')}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel3bh-content"
id="panel3bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
Advanced settings
</Typography>
<Typography sx={{ color: 'text.secondary' }}>
Expand All @@ -104,7 +92,11 @@ export default function ControlledAccordions() {
aria-controls="panel4bh-content"
id="panel4bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0, textAlign: 'start' }}>
<Typography
component="span"
align="left"
sx={{ width: '33%', flexShrink: 0 }}
>
Personal data
</Typography>
</AccordionSummary>
Expand Down

0 comments on commit 46e1449

Please sign in to comment.