Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix: Import Transition directly to fix rollup warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Nov 1, 2018
1 parent f19fb97 commit 4fd962e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 59 deletions.
68 changes: 18 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@
"lodash": "^4.17.11",
"popper.js": "^1.14.4",
"react-portal": "^4.1.5",
"react-transition-group": "^2.5.0",
"styled-system": "^3.1.11"
},
"peerDependencies": {
"styled-system": "^3.1.11",
"polished": "^2.0.0",
"prop-types": "^15.6.1",
"react": "^16.2.0",
"react-animations": "^1.0.0",
"react-transition-group": "^2.5.0",
"styled-components": "^4.0.0"
},
"peerDependencies": {
"react": "^16.5.0",
"react-dom": "^16.5.0"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
Expand All @@ -61,10 +62,7 @@
"jest": "^23.6.0",
"jest-styled-components": "^6.2.1",
"npm-run-all": "^4.1.2",
"polished": "^2.2.0",
"prop-types": "^15.6.1",
"react": "^16.5.2",
"react-animations": "^1.0.0",
"react-dom": "^16.5.2",
"react-router-dom": "^4.2.2",
"react-test-renderer": "^16.5.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Collapse/Collapse.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { css } from 'styled-components';
import Transition from 'react-transition-group/Transition';
import { Transition } from 'react-transition-group';
import { createComponent } from '../utils';

const getTransitionStyle = (state, duration) => {
Expand Down

0 comments on commit 4fd962e

Please sign in to comment.