Skip to content

Commit 6a4136f

Browse files
authored
Fix 'icon' prop typing for ConfirmButton component (#386)
* fix icon typing * Remove unused imports * remove unused imports
1 parent f58284e commit 6a4136f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/confirm-buttons.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
import { Box, Button, Chip, IconButton, SvgIconTypeMap } from '@mui/material';
1+
import { Box, Button, Chip, IconButton } from '@mui/material';
22
import React, { useState } from 'react';
33
import { useTranslator } from '../hooks';
44
import CloseIcon from '@mui/icons-material/Close';
5-
import { OverridableComponent } from '@mui/material/OverridableComponent';
65

76
export function ConfirmButton(props: {
87
onConfirm: () => void;
98
confirmationText: string;
10-
icon:
11-
| JSX.Element
12-
| (OverridableComponent<SvgIconTypeMap<unknown, 'svg'>> & {
13-
muiName: string;
14-
});
9+
icon?: JSX.Element;
1510
name?: string | undefined;
1611
remainAfterConfirmation?: boolean;
1712
remainText?: string;

0 commit comments

Comments
 (0)