From e1ebba5b1c8752a5b8bfcb8f140609b478df8b79 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 6 Apr 2017 18:26:40 -0300 Subject: [PATCH] =?UTF-8?q?=C3=81dding=20PropTypes=20to=20Slot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/coral-framework/components/Slot.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/coral-framework/components/Slot.js b/client/coral-framework/components/Slot.js index 691dcad68..84125e03d 100644 --- a/client/coral-framework/components/Slot.js +++ b/client/coral-framework/components/Slot.js @@ -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 (
{getSlotElements(fill, rest)} @@ -12,4 +12,8 @@ class Slot extends Component { } } +Slot.propTypes = { + fill: React.PropTypes.string +}; + export default Slot;