mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-17 01:17:29 +02:00
feat: segment constraints in UI (#4472)
This commit is contained in:
parent
46314d2772
commit
0e4485d0fc
@ -6,6 +6,7 @@ import {
|
|||||||
} from 'component/changeRequest/changeRequest.types';
|
} from 'component/changeRequest/changeRequest.types';
|
||||||
import { useSegment } from 'hooks/api/getters/useSegment/useSegment';
|
import { useSegment } from 'hooks/api/getters/useSegment/useSegment';
|
||||||
import { SegmentDiff, SegmentTooltipLink } from '../../SegmentTooltipLink';
|
import { SegmentDiff, SegmentTooltipLink } from '../../SegmentTooltipLink';
|
||||||
|
import { ConstraintAccordionList } from 'component/common/ConstraintAccordion/ConstraintAccordionList/ConstraintAccordionList';
|
||||||
|
|
||||||
const ChangeItemCreateEditWrapper = styled(Box)(({ theme }) => ({
|
const ChangeItemCreateEditWrapper = styled(Box)(({ theme }) => ({
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
@ -87,6 +88,10 @@ export const SegmentChangeDetails: VFC<{
|
|||||||
</ChangeItemInfo>
|
</ChangeItemInfo>
|
||||||
<div>{actions}</div>
|
<div>{actions}</div>
|
||||||
</ChangeItemCreateEditWrapper>
|
</ChangeItemCreateEditWrapper>
|
||||||
|
<ConstraintAccordionList
|
||||||
|
constraints={change.payload.constraints}
|
||||||
|
showLabel={false}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</SegmentContainer>
|
</SegmentContainer>
|
||||||
|
Loading…
Reference in New Issue
Block a user