Skip to content

Commit c7d656c

Browse files
committed
chore: clean-up
1 parent d3ed25c commit c7d656c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/components/backdrop/CBackdrop.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// TODO: add smooth transition.
22

33
import React, { forwardRef, HTMLAttributes } from 'react'
4-
import { createPortal } from 'react-dom'
54
import { CSSTransition } from 'react-transition-group'
65
import PropTypes from 'prop-types'
76
import classNames from 'classnames'
@@ -15,7 +14,6 @@ export interface CBackdropProps extends HTMLAttributes<HTMLDivElement> {
1514
* Toggle the visibility of modal component. [docs]
1615
*/
1716
visible?: boolean
18-
addEndListener?: any
1917
}
2018

2119
export const CBackdrop = forwardRef<HTMLDivElement, CBackdropProps>(
@@ -28,10 +26,6 @@ export const CBackdrop = forwardRef<HTMLDivElement, CBackdropProps>(
2826
className
2927
)
3028

31-
const backdrop = (ref?: React.Ref<HTMLDivElement>) => {
32-
return <div className={_className} {...rest} ref={ref} />
33-
}
34-
3529
return (
3630
<CSSTransition
3731
in={visible}

src/components/offcanvas/COffcanvasHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ElementType, forwardRef, HTMLAttributes } from 'react'
1+
import React, { forwardRef, HTMLAttributes } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44

0 commit comments

Comments
 (0)