1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src/component/common/StrategyList/StrategyList.tsx
Thomas Heartman b84699f563
refactor(1-3439): extract shared components and styling from Env Accordion Body to common (#9590)
Extracts the shared strategy list and list item into the `common` folder
instead of living in the environment accordion body file.

Also takes the disabled strategy handling that we use for
`StrategySeparator` and moves it into the file itself. It might be
something we want to decorate manually in the future, but we don't for
now, so this was the most straight-forward way to make it work.
2025-03-24 07:39:35 +00:00

19 lines
415 B
TypeScript

import { styled } from '@mui/material';
export const StrategyList = styled('ol')(({ theme }) => ({
listStyle: 'none',
padding: 0,
margin: 0,
'& > li': {
paddingBlock: theme.spacing(2.5),
position: 'relative',
},
'& > li + li': {
borderTop: `1px solid ${theme.palette.divider}`,
},
'& > li:first-of-type': {
paddingTop: theme.spacing(1),
},
}));