diff --git a/client/coral-framework/components/Slot.js b/client/coral-framework/components/Slot.js index c1e5dfe65..ad4847fcb 100644 --- a/client/coral-framework/components/Slot.js +++ b/client/coral-framework/components/Slot.js @@ -1,20 +1,16 @@ -import React, {Component} from 'react'; -import {getSlotElements} from 'coral-framework/helpers/plugins'; +import React from 'react'; +import cn from 'classnames'; import styles from './Slot.css'; +import {getSlotElements} from 'coral-framework/helpers/plugins'; -class Slot extends Component { - render() { - const {fill, inline = false, ...rest} = this.props; - return ( -
- {getSlotElements(fill, rest)} -
- ); - } +export default function Slot ({fill, inline = false, ...rest}) { + return ( +
+ {getSlotElements(fill, rest)} +
+ ); } Slot.propTypes = { fill: React.PropTypes.string -}; - -export default Slot; +}; \ No newline at end of file