Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure SwitchTransition component is exported #516

Merged
merged 1 commit into from Jul 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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