|
1 | 1 | import type React from 'react';
|
2 | 2 | import { forwardRef, Fragment, useImperativeHandle } from 'react';
|
3 |
| -import { styled, Tooltip } from '@mui/material'; |
4 |
| -import HelpOutline from '@mui/icons-material/HelpOutline'; |
| 3 | +import { styled } from '@mui/material'; |
5 | 4 | import type { IConstraint } from 'interfaces/strategy';
|
6 | 5 | import produce from 'immer';
|
7 | 6 | import useUnleashContext from 'hooks/api/getters/useUnleashContext/useUnleashContext';
|
@@ -43,30 +42,6 @@ const StyledContainer = styled('div')({
|
43 | 42 | flexDirection: 'column',
|
44 | 43 | });
|
45 | 44 |
|
46 |
| -const StyledHelpWrapper = styled(Tooltip)(({ theme }) => ({ |
47 |
| - marginLeft: theme.spacing(0.75), |
48 |
| - height: theme.spacing(1.5), |
49 |
| -})); |
50 |
| - |
51 |
| -const StyledHelp = styled(HelpOutline)(({ theme }) => ({ |
52 |
| - fill: theme.palette.action.active, |
53 |
| - [theme.breakpoints.down(860)]: { |
54 |
| - display: 'none', |
55 |
| - }, |
56 |
| -})); |
57 |
| - |
58 |
| -const StyledConstraintLabel = styled('p')(({ theme }) => ({ |
59 |
| - marginBottom: theme.spacing(1), |
60 |
| - color: theme.palette.text.secondary, |
61 |
| -})); |
62 |
| - |
63 |
| -const StyledAddCustomLabel = styled('div')(({ theme }) => ({ |
64 |
| - marginTop: theme.spacing(1), |
65 |
| - marginBottom: theme.spacing(1), |
66 |
| - color: theme.palette.text.primary, |
67 |
| - display: 'flex', |
68 |
| -})); |
69 |
| - |
70 | 45 | export const useConstraintAccordionList = (
|
71 | 46 | setConstraints:
|
72 | 47 | | React.Dispatch<React.SetStateAction<IConstraint[]>>
|
@@ -103,7 +78,7 @@ interface IConstraintList {
|
103 | 78 | state: IUseWeakMap<IConstraint, IConstraintAccordionListItemState>;
|
104 | 79 | }
|
105 | 80 |
|
106 |
| -export const NewConstraintAccordionList = forwardRef< |
| 81 | +export const ConstraintFormAccordionList = forwardRef< |
107 | 82 | IConstraintAccordionListRef | undefined,
|
108 | 83 | IConstraintList
|
109 | 84 | >(({ constraints, setConstraints, state }, ref) => {
|
|
0 commit comments