From cfe8e36ccf139a8e89ab4712d91f1d3c3163407e Mon Sep 17 00:00:00 2001 From: paranoidjk Date: Sat, 27 May 2017 14:13:52 +0800 Subject: refactor: simplify export --- src/TimePicker.jsx | 4 +--- src/index.js | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 91745c6..2c6a1f1 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx @@ -12,7 +12,7 @@ function refFn(field, component) { this[field] = component; } -class Picker extends Component { +export default class Picker extends Component { static propTypes = { prefixCls: PropTypes.string, clearText: PropTypes.string, @@ -267,5 +267,3 @@ class Picker extends Component { ); } } - -export default Picker; diff --git a/src/index.js b/src/index.js index f72be4f..02f4176 100644 --- a/src/index.js +++ b/src/index.js @@ -1,2 +1 @@ -import TimePicker from './TimePicker'; -export default TimePicker; +export { default } from './TimePicker'; -- cgit v1.2.3