Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Collapse Component for tingle
* @author
*
* Copyright 2014-2016, Tingle Team.
* All rights reserved.
*/
import React from 'react';
import RcCollapse from 'rc-collapse';
import assign from 'object-assign';
class Collapse extends RcCollapse {}
Collapse.displayName = 'tingle-collapse';
Collapse.propTypes = RcCollapse.propTypes;
Collapse.defaultProps = assign({}, RcCollapse.defaultProps, {
prefixCls: 'tingle-collapse',
});
export default Collapse;
/**
* Collapse Component for SaltUI
* @author
*
* Copyright 2018-2019, SaltUI Team.
* All rights reserved.
*/
import RcCollapse from 'rc-collapse';
import assign from 'object-assign';
import Context from '../Context';
class Collapse extends RcCollapse {}
Collapse.displayName = 'Collapse';
Collapse.propTypes = RcCollapse.propTypes;
Collapse.defaultProps = assign({}, RcCollapse.defaultProps, {
prefixCls: Context.prefixClass('collapse'),
});
export default Collapse;