Skip to content

Commit

Permalink
Get rid of warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Mar 12, 2021
1 parent e5aacef commit dd94203
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/SidebarPopup/SidebarPopup.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import { Portal } from 'react-portal';
import PropTypes from 'prop-types';
import { CSSTransition } from 'react-transition-group';

const DEFAULT_TIMEOUT = 500;
// TODO: add CSS transition on display

const SidebarPopup = ({ children, open }, ref) => {
const SidebarPopup = (props, ref) => {
const { children, open } = props;
return (
<CSSTransition
in={open}
Expand Down Expand Up @@ -35,8 +35,4 @@ const SidebarPopup = ({ children, open }, ref) => {
);
};

SidebarPopup.propTypes = {
open: PropTypes.bool,
};

export default React.forwardRef(SidebarPopup);

0 comments on commit dd94203

Please sign in to comment.