mirror of
https://github.com/wassname/talk.git
synced 2026-08-06 13:41:02 +08:00
Fix External
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user