@centreon/ui 24.4.1-MON-21278-Delete-a-basic-token.0 → 24.4.1-MON-21278-Delete-a-basic-token.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "24.4.1-MON-21278-Delete-a-basic-token.0",
3
+ "version": "24.4.1-MON-21278-Delete-a-basic-token.1",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -1,16 +1,10 @@
1
- import {
2
- ButtonProps,
3
- DialogContentText,
4
- Typography,
5
- TypographyProps
6
- } from '@mui/material';
1
+ import { ButtonProps, DialogContentText, Typography } from '@mui/material';
7
2
 
8
3
  import Dialog, { Props as DialogProps } from '..';
9
4
 
10
5
  type Props = DialogProps & {
11
6
  children?: JSX.Element;
12
7
  labelMessage?: string | null;
13
- labelMessageProps?: TypographyProps;
14
8
  labelSecondMessage?: string | null;
15
9
  restCancelButtonProps?: ButtonProps;
16
10
  restConfirmButtonProps?: ButtonProps;
@@ -22,7 +16,6 @@ const Confirm = ({
22
16
  children,
23
17
  restCancelButtonProps,
24
18
  restConfirmButtonProps,
25
- labelMessageProps,
26
19
  ...rest
27
20
  }: Props): JSX.Element => (
28
21
  <Dialog
@@ -31,9 +24,7 @@ const Confirm = ({
31
24
  {...rest}
32
25
  >
33
26
  <DialogContentText>
34
- {labelMessage && (
35
- <Typography {...labelMessageProps}>{labelMessage}</Typography>
36
- )}
27
+ {labelMessage && <Typography>{labelMessage}</Typography>}
37
28
  {labelSecondMessage && <Typography>{labelSecondMessage}</Typography>}
38
29
  {children}
39
30
  </DialogContentText>