Ádding PropTypes to Slot

This commit is contained in:
Belen Curcio
2017-04-06 18:26:40 -03:00
parent ad8c6cc140
commit e1ebba5b1c
+7 -3
View File
@@ -1,9 +1,9 @@
import React, {Component} from 'react';
import {getSlotElements} from 'coral-framework/helpers/plugins';
import React, { Component } from "react";
import { getSlotElements } from "coral-framework/helpers/plugins";
class Slot extends Component {
render() {
const {fill, ...rest} = this.props;
const { fill, ...rest } = this.props;
return (
<div>
{getSlotElements(fill, rest)}
@@ -12,4 +12,8 @@ class Slot extends Component {
}
}
Slot.propTypes = {
fill: React.PropTypes.string
};
export default Slot;