Skip to content

Commit

Permalink
fix: updated SwitchTransition component to be default export and expo…
Browse files Browse the repository at this point in the history
…rted from index.js (#516)
  • Loading branch information
chrisbrown-io authored and jquense committed Jul 2, 2019
1 parent 51acc5d commit cfd0070
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/SwitchTransition.js
Expand Up @@ -96,7 +96,7 @@ const enterRenders = {
* }
* ```
*/
export class SwitchTransition extends React.Component {
class SwitchTransition extends React.Component {
state = {
status: ENTERED,
current: null
Expand Down Expand Up @@ -189,3 +189,5 @@ SwitchTransition.propTypes = {
SwitchTransition.defaultProps = {
mode: modes.out
}

export default SwitchTransition;
1 change: 1 addition & 0 deletions src/index.js
@@ -1,5 +1,6 @@
export { default as CSSTransition } from './CSSTransition'
export { default as ReplaceTransition } from './ReplaceTransition'
export { default as SwitchTransition } from './SwitchTransition'
export { default as TransitionGroup } from './TransitionGroup'
export { default as Transition } from './Transition'
export { default as config } from './config'
2 changes: 1 addition & 1 deletion test/SwitchTransition-test.js
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { mount } from 'enzyme';

import Transition, { ENTERED } from '../src/Transition';
import { SwitchTransition, modes } from '../src/SwitchTransition';
import SwitchTransition, { modes } from '../src/SwitchTransition';

describe('SwitchTransition', () => {
let log, Parent;
Expand Down

0 comments on commit cfd0070

Please sign in to comment.