mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-23 03:36:30 +10:00
19 lines
367 B
JavaScript
19 lines
367 B
JavaScript
'use strict';
|
|
|
|
var Switch = require('rc-switch');
|
|
var React = require('react');
|
|
|
|
var AntSwitch = React.createClass({
|
|
displayName: 'AntSwitch',
|
|
|
|
getDefaultProps: function getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-switch'
|
|
};
|
|
},
|
|
render: function render() {
|
|
return React.createElement(Switch, this.props);
|
|
}
|
|
});
|
|
|
|
module.exports = AntSwitch; |