File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
1
// TODO: add smooth transition.
2
2
3
3
import React , { forwardRef , HTMLAttributes } from 'react'
4
- import { createPortal } from 'react-dom'
5
4
import { CSSTransition } from 'react-transition-group'
6
5
import PropTypes from 'prop-types'
7
6
import classNames from 'classnames'
@@ -15,7 +14,6 @@ export interface CBackdropProps extends HTMLAttributes<HTMLDivElement> {
15
14
* Toggle the visibility of modal component. [docs]
16
15
*/
17
16
visible ?: boolean
18
- addEndListener ?: any
19
17
}
20
18
21
19
export const CBackdrop = forwardRef < HTMLDivElement , CBackdropProps > (
@@ -28,10 +26,6 @@ export const CBackdrop = forwardRef<HTMLDivElement, CBackdropProps>(
28
26
className
29
27
)
30
28
31
- const backdrop = ( ref ?: React . Ref < HTMLDivElement > ) => {
32
- return < div className = { _className } { ...rest } ref = { ref } />
33
- }
34
-
35
29
return (
36
30
< CSSTransition
37
31
in = { visible }
Original file line number Diff line number Diff line change 1
- import React , { ElementType , forwardRef , HTMLAttributes } from 'react'
1
+ import React , { forwardRef , HTMLAttributes } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
You can’t perform that action at this time.
0 commit comments