Skip to content

Commit 7a73db1

Browse files
committed
refactor(CToastClose): update interface
1 parent 39c0fac commit 7a73db1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: packages/coreui-react/src/components/toast/CToastClose.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import PropTypes from 'prop-types'
33
import { CToastContext } from './CToast'
44
import { CCloseButton, CCloseButtonProps } from '../close-button/CCloseButton'
55

6-
export interface CToastCloseProps extends CCloseButtonProps {
6+
import type { CButtonProps } from '../button/CButton'
7+
8+
type CombineButtonProps = CCloseButtonProps & CButtonProps
9+
export interface CToastCloseProps extends CombineButtonProps {
710
/**
811
* Component used for the root node. Either a string to use a HTML element or a component.
912
*/

0 commit comments

Comments
 (0)