@centreon/ui 23.10.55 → 23.10.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Fragment, useMemo } from 'react';
|
|
2
2
|
|
|
3
3
|
import * as R from 'ramda';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
4
|
import { makeStyles } from 'tss-react/mui';
|
|
6
5
|
import { FormikValues, useFormikContext } from 'formik';
|
|
7
6
|
|
|
@@ -126,7 +125,6 @@ const Inputs = ({
|
|
|
126
125
|
areGroupsOpen
|
|
127
126
|
}: Props): JSX.Element => {
|
|
128
127
|
const { classes, cx } = useStyles({ groupDirection });
|
|
129
|
-
const { t } = useTranslation();
|
|
130
128
|
const formikContext = useFormikContext<FormikValues>();
|
|
131
129
|
|
|
132
130
|
const groupsName = R.pluck('name', groups);
|
|
@@ -228,7 +226,7 @@ const Inputs = ({
|
|
|
228
226
|
)}
|
|
229
227
|
variant="body1"
|
|
230
228
|
>
|
|
231
|
-
{
|
|
229
|
+
{inputProps.additionalLabel}
|
|
232
230
|
</Typography>
|
|
233
231
|
)}
|
|
234
232
|
<div className={inputProps?.inputClassName || ''}>
|
|
@@ -29,7 +29,7 @@ interface FieldsTableGetRequiredProps {
|
|
|
29
29
|
export type LabelPlacement = 'bottom' | 'top' | 'end' | 'start' | undefined;
|
|
30
30
|
|
|
31
31
|
export interface InputProps {
|
|
32
|
-
additionalLabel?: string;
|
|
32
|
+
additionalLabel?: string | JSX.Element;
|
|
33
33
|
additionalLabelClassName?: string;
|
|
34
34
|
additionalMemoProps?: Array<unknown>;
|
|
35
35
|
autocomplete?: {
|