Fix External

This commit is contained in:
Chi Vinh Le
2018-02-13 11:48:12 +01:00
parent 4224f18ba7
commit 6c1ed826d0
@@ -1,10 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import t from 'coral-framework/services/i18n';
import styles from './External.css';
import { Slot } from 'plugin-api/beta/client/components';
import { IfSlotIsNotEmpty } from 'plugin-api/beta/client/components';
const External = slot => (
const External = ({ slot }) => (
<div>
<IfSlotIsNotEmpty slot={slot}>
<div className={styles.external}>
@@ -17,4 +18,8 @@ const External = slot => (
</div>
);
External.propTypes = {
slot: PropTypes.string.isRequired,
};
export default External;