@centreon/ui 23.10.42 → 23.10.43

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": "23.10.42",
3
+ "version": "23.10.43",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -3,6 +3,7 @@ import { DialogContentText, Typography } from '@mui/material';
3
3
  import Dialog, { Props as DialogProps } from '..';
4
4
 
5
5
  type Props = DialogProps & {
6
+ children?: JSX.Element;
6
7
  labelMessage?: string | null;
7
8
  labelSecondMessage?: string | null;
8
9
  };
@@ -10,12 +11,14 @@ type Props = DialogProps & {
10
11
  const Confirm = ({
11
12
  labelMessage,
12
13
  labelSecondMessage,
14
+ children,
13
15
  ...rest
14
16
  }: Props): JSX.Element => (
15
17
  <Dialog {...rest}>
16
18
  <DialogContentText>
17
19
  {labelMessage && <Typography>{labelMessage}</Typography>}
18
20
  {labelSecondMessage && <Typography>{labelSecondMessage}</Typography>}
21
+ {children}
19
22
  </DialogContentText>
20
23
  </Dialog>
21
24
  );
@@ -116,7 +116,7 @@ const DataCell = ({
116
116
  isRowHighlighted={isRowHighlighted}
117
117
  viewMode={viewMode}
118
118
  onClick={(e): void => {
119
- if (!clickable || !column.displaySubItemsCaret) {
119
+ if (!clickable && !column.displaySubItemsCaret) {
120
120
  return;
121
121
  }
122
122
  e.preventDefault();