mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 01:47:25 +03:00 
			
		
		
		
	Export on same line as class definition
This commit is contained in:
		
							parent
							
								
									ac48eb35b3
								
							
						
					
					
						commit
						3054bfac1b
					
				| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
import React, { Component, PropTypes } from 'react';
 | 
					import React, { Component, PropTypes } from 'react';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Counter extends Component {
 | 
					export default class Counter extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    increment: PropTypes.func.isRequired,
 | 
					    increment: PropTypes.func.isRequired,
 | 
				
			||||||
    incrementIfOdd: PropTypes.func.isRequired,
 | 
					    incrementIfOdd: PropTypes.func.isRequired,
 | 
				
			||||||
| 
						 | 
					@ -23,5 +23,3 @@ class Counter extends Component {
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Counter;
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,7 +8,7 @@ const FILTER_TITLES = {
 | 
				
			||||||
  [SHOW_MARKED]: 'Completed'
 | 
					  [SHOW_MARKED]: 'Completed'
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Footer extends Component {
 | 
					export default class Footer extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    markedCount: PropTypes.number.isRequired,
 | 
					    markedCount: PropTypes.number.isRequired,
 | 
				
			||||||
    unmarkedCount: PropTypes.number.isRequired,
 | 
					    unmarkedCount: PropTypes.number.isRequired,
 | 
				
			||||||
| 
						 | 
					@ -69,5 +69,3 @@ class Footer extends Component {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Footer;
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
import React, { PropTypes, Component } from 'react';
 | 
					import React, { PropTypes, Component } from 'react';
 | 
				
			||||||
import TodoTextInput from './TodoTextInput';
 | 
					import TodoTextInput from './TodoTextInput';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Header extends Component {
 | 
					export default class Header extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    addTodo: PropTypes.func.isRequired
 | 
					    addTodo: PropTypes.func.isRequired
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					@ -23,5 +23,3 @@ class Header extends Component {
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Header;
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@ const TODO_FILTERS = {
 | 
				
			||||||
  [SHOW_MARKED]: todo => todo.marked
 | 
					  [SHOW_MARKED]: todo => todo.marked
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class MainSection extends Component {
 | 
					export default class MainSection extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    todos: PropTypes.array.isRequired,
 | 
					    todos: PropTypes.array.isRequired,
 | 
				
			||||||
    actions: PropTypes.object.isRequired
 | 
					    actions: PropTypes.object.isRequired
 | 
				
			||||||
| 
						 | 
					@ -82,5 +82,3 @@ class MainSection extends Component {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
export default MainSection;
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react';
 | 
				
			||||||
import classnames from 'classnames';
 | 
					import classnames from 'classnames';
 | 
				
			||||||
import TodoTextInput from './TodoTextInput';
 | 
					import TodoTextInput from './TodoTextInput';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TodoItem extends Component {
 | 
					export default class TodoItem extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    todo: PropTypes.object.isRequired,
 | 
					    todo: PropTypes.object.isRequired,
 | 
				
			||||||
    editTodo: PropTypes.func.isRequired,
 | 
					    editTodo: PropTypes.func.isRequired,
 | 
				
			||||||
| 
						 | 
					@ -66,5 +66,3 @@ class TodoItem extends Component {
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
export default TodoItem;
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
import React, { Component, PropTypes } from 'react';
 | 
					import React, { Component, PropTypes } from 'react';
 | 
				
			||||||
import classnames from 'classnames';
 | 
					import classnames from 'classnames';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TodoTextInput extends Component {
 | 
					export default class TodoTextInput extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    onSave: PropTypes.func.isRequired,
 | 
					    onSave: PropTypes.func.isRequired,
 | 
				
			||||||
    text: PropTypes.string,
 | 
					    text: PropTypes.string,
 | 
				
			||||||
| 
						 | 
					@ -53,5 +53,3 @@ class TodoTextInput extends Component {
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
export default TodoTextInput;
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user