@@ -22,11 +22,7 @@ export interface DialogTitleProps {
22
22
/**
23
23
* Override of Material UI's DialogTitle that allows for a supertitle and background icon
24
24
*/
25
- export const DialogTitle : React . FC < React . PropsWithChildren < DialogTitleProps > > = ( {
26
- title,
27
- icon : Icon ,
28
- superTitle,
29
- } ) => {
25
+ export const DialogTitle : React . FC < DialogTitleProps > = ( { title, icon : Icon , superTitle } ) => {
30
26
const styles = useTitleStyles ( )
31
27
return (
32
28
< MuiDialogTitle disableTypography >
@@ -96,7 +92,7 @@ const typeToColor = (type: ConfirmDialogType): LoadingButtonProps["color"] => {
96
92
/**
97
93
* Quickly handles most modals actions, some combination of a cancel and confirm button
98
94
*/
99
- export const DialogActionButtons : React . FC < React . PropsWithChildren < DialogActionButtonsProps > > = ( {
95
+ export const DialogActionButtons : React . FC < DialogActionButtonsProps > = ( {
100
96
cancelText = "Cancel" ,
101
97
confirmText = "Confirm" ,
102
98
confirmLoading = false ,
@@ -313,7 +309,7 @@ export type DialogSearchProps = Omit<
313
309
* Formats a search bar right below the title of a Dialog. Passes all props
314
310
* through to the Material UI OutlinedInput component contained within.
315
311
*/
316
- export const DialogSearch : React . FC < React . PropsWithChildren < DialogSearchProps > > = ( props ) => {
312
+ export const DialogSearch : React . FC < DialogSearchProps > = ( props ) => {
317
313
const styles = useSearchStyles ( )
318
314
return (
319
315
< div className = { styles . root } >
@@ -360,7 +356,7 @@ export type DialogProps = MuiDialogProps
360
356
*
361
357
* See original component's Material UI documentation here: https://material-ui.com/components/dialogs/
362
358
*/
363
- export const Dialog : React . FC < React . PropsWithChildren < DialogProps > > = ( props ) => {
359
+ export const Dialog : React . FC < DialogProps > = ( props ) => {
364
360
// Wrapped so we can add custom attributes below
365
361
return < MuiDialog { ...props } />
366
362
}
0 commit comments