1- import type { ReactNode , MouseEvent , FunctionComponent } from 'react' ;
1+ import type { FunctionComponent } from 'react' ;
22import { useState } from 'react' ;
33import {
44 Button ,
@@ -18,33 +18,33 @@ import { ModalProps, Modal, ModalVariant } from '@patternfly/react-core/deprecat
1818
1919export interface ColumnManagementModalColumn {
2020 /** Internal identifier of a column by which table displayed columns are filtered. */
21- key : string ,
21+ key : string ;
2222 /** The actual display name of the column possibly with a tooltip or icon. */
23- title : ReactNode ,
23+ title : React . ReactNode ;
2424 /** If user changes checkboxes, the component will send back column array with this property altered. */
25- isShown ?: boolean ,
25+ isShown ?: boolean ;
2626 /** Set to false if the column should be hidden initially */
27- isShownByDefault : boolean ,
27+ isShownByDefault : boolean ;
2828 /** The checkbox will be disabled, this is applicable to columns which should not be toggleable by user */
29- isUntoggleable ?: boolean
29+ isUntoggleable ?: boolean ;
3030}
3131
3232/** extends ModalProps */
3333export interface ColumnManagementModalProps extends Omit < ModalProps , 'ref' | 'children' > {
3434 /** Flag to show the modal */
35- isOpen ?: boolean ,
35+ isOpen ?: boolean ;
3636 /** Invoked when modal visibility is changed */
37- onClose ?: ( event : KeyboardEvent | MouseEvent ) => void ,
37+ onClose ?: ( event : KeyboardEvent | React . MouseEvent ) => void ;
3838 /** Current column state */
39- appliedColumns : ColumnManagementModalColumn [ ] ,
39+ appliedColumns : ColumnManagementModalColumn [ ] ;
4040 /** Invoked with new column state after save button is clicked */
41- applyColumns : ( newColumns : ColumnManagementModalColumn [ ] ) => void ,
41+ applyColumns : ( newColumns : ColumnManagementModalColumn [ ] ) => void ;
4242 /* Modal description text */
43- description ?: string ,
43+ description ?: string ;
4444 /* Modal title text */
45- title ?: string ,
45+ title ?: string ;
4646 /** Custom OUIA ID */
47- ouiaId ?: string | number ,
47+ ouiaId ?: string | number ;
4848}
4949
5050const ColumnManagementModal : FunctionComponent < ColumnManagementModalProps > = (
0 commit comments