diff --git a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx index b70f621e73..826add1f31 100644 --- a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx +++ b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx @@ -21,6 +21,10 @@ const StyledWrapper = styled('div')(({ theme }) => ({ gap: theme.spacing(1), })); +/** + * @deprecated use `component/feature/FeatureStrategy/FeatureStrategyConstraints/ConstraintDateInput.tsx` + * Remove with flag `addEditStrategy` + */ export const DateSingleValue = ({ setValue, value, diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx index c51c997b54..51a21e1ce4 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx @@ -22,12 +22,6 @@ const InputRow = styled('div')(({ theme }) => ({ width: '100%', })); -const ErrorMessage = styled('div')(({ theme }) => ({ - color: theme.palette.error.main, - fontSize: theme.typography.caption.fontSize, - marginBottom: theme.spacing(1), -})); - export type OnAddActions = { setError: (error: string) => void; clearInput: () => void; @@ -93,7 +87,6 @@ export const AddValuesPopover: FC = ({ } }} > - {error && {error}} @@ -111,6 +104,8 @@ export const AddValuesPopover: FC = ({ fullWidth inputRef={inputRef} autoFocus + error={!!error} + helperText={error} />