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
1919 * @default true
2020 */
2121 autohide ?: boolean
22- /**
23- * A string of all className you want applied to the body wrapper. [docs]
24- */
25- bodyWrapperClassName ?: string
2622 /**
2723 * A string of all className you want applied to the base component. [docs]
2824 */
2925 className ?: string
30- /**
31- * A string of all className you want applied to the close button. [docs]
32- */
33- closeButtonClassName ?: string
3426 /**
3527 * Sets the color context of the component to one of CoreUI’s themed colors. [docs]
3628 *
@@ -70,9 +62,7 @@ export const CToast = forwardRef<HTMLDivElement, CToastProps>(
7062 {
7163 children,
7264 autohide = true ,
73- bodyWrapperClassName,
7465 className,
75- closeButtonClassName,
7666 color,
7767 delay = 5000 ,
7868 key,
@@ -83,8 +73,6 @@ export const CToast = forwardRef<HTMLDivElement, CToastProps>(
8373 ref ,
8474 ) => {
8575 const [ _visible , setVisible ] = useState ( visible )
86- // const toastRef = useRef<HTMLDivElement>(null)
87- // const forkedRef = useForkedRef(ref, toastRef)
8876 const timeout = useRef < number > ( )
8977
9078 const contextValues = {
@@ -118,11 +106,7 @@ export const CToast = forwardRef<HTMLDivElement, CToastProps>(
118106 className ,
119107 )
120108 return (
121- < CSSTransition
122- in = { _visible }
123- timeout = { 250 }
124- unmountOnExit
125- >
109+ < CSSTransition in = { _visible } timeout = { 250 } onExit = { onDismiss } unmountOnExit >
126110 < CToastContext . Provider value = { contextValues } >
127111 < div
128112 className = { _className }
You can’t perform that action at this time.
0 commit comments