mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-05-20 09:42:28 -04:00
Edits based on feedback
thanks @rschamp !
This commit is contained in:
parent
c6cd701464
commit
d2474c87a5
3 changed files with 15 additions and 16 deletions
src/components/modal/iframe
|
@ -9,19 +9,12 @@ Modal.setAppElement(document.getElementById('view'));
|
|||
|
||||
var IframeModal = React.createClass({
|
||||
propTypes: {
|
||||
componentKey: React.PropTypes.string,
|
||||
isOpen: React.PropTypes.bool,
|
||||
onRequestClose: React.PropTypes.func,
|
||||
className: React.PropTypes.string,
|
||||
componentRef: React.PropTypes.string,
|
||||
src: React.PropTypes.string
|
||||
},
|
||||
getDefaultProps: function () {
|
||||
return {
|
||||
className: '',
|
||||
iframeClassName: ''
|
||||
};
|
||||
},
|
||||
render: function () {
|
||||
var iframeClasses = classNames(
|
||||
'modal-content-iframe',
|
||||
|
@ -29,7 +22,6 @@ var IframeModal = React.createClass({
|
|||
);
|
||||
return (
|
||||
<Modal
|
||||
key={this.props.componentKey}
|
||||
isOpen={this.props.isOpen}
|
||||
onRequestClose={this.props.onRequestClose}
|
||||
className={this.props.className}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue