File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,10 @@ export interface CToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title
19
19
* @default true
20
20
*/
21
21
autohide ?: boolean
22
- /**
23
- * A string of all className you want applied to the body wrapper. [docs]
24
- */
25
- bodyWrapperClassName ?: string
26
22
/**
27
23
* A string of all className you want applied to the base component. [docs]
28
24
*/
29
25
className ?: string
30
- /**
31
- * A string of all className you want applied to the close button. [docs]
32
- */
33
- closeButtonClassName ?: string
34
26
/**
35
27
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
36
28
*
@@ -70,9 +62,7 @@ export const CToast = forwardRef<HTMLDivElement, CToastProps>(
70
62
{
71
63
children,
72
64
autohide = true ,
73
- bodyWrapperClassName,
74
65
className,
75
- closeButtonClassName,
76
66
color,
77
67
delay = 5000 ,
78
68
key,
@@ -83,8 +73,6 @@ export const CToast = forwardRef<HTMLDivElement, CToastProps>(
83
73
ref ,
84
74
) => {
85
75
const [ _visible , setVisible ] = useState ( visible )
86
- // const toastRef = useRef<HTMLDivElement>(null)
87
- // const forkedRef = useForkedRef(ref, toastRef)
88
76
const timeout = useRef < number > ( )
89
77
90
78
const contextValues = {
@@ -118,11 +106,7 @@ export const CToast = forwardRef<HTMLDivElement, CToastProps>(
118
106
className ,
119
107
)
120
108
return (
121
- < CSSTransition
122
- in = { _visible }
123
- timeout = { 250 }
124
- unmountOnExit
125
- >
109
+ < CSSTransition in = { _visible } timeout = { 250 } onExit = { onDismiss } unmountOnExit >
126
110
< CToastContext . Provider value = { contextValues } >
127
111
< div
128
112
className = { _className }
You can’t perform that action at this time.
0 commit comments