diff --git a/examples/basic/app.js b/examples/basic/app.js index 00b5ad47..648296a9 100644 --- a/examples/basic/app.js +++ b/examples/basic/app.js @@ -6,46 +6,16 @@ var appElement = document.getElementById('example'); Modal.setAppElement('#example'); -Modal.defaultStyles = { - overlay : { - position : 'fixed', - top : 0, - left : 0, - right : 0, - bottom : 0, - backgroundColor : 'rebeccapurple' - }, - content : { - position : 'absolute', - top : '40px', - left : '40px', - right : '40px', - bottom : '40px', - border : '1px solid #ccc', - background : '#fff', - overflow : 'auto', - WebkitOverflowScrolling : 'touch', - borderRadius : '4px', - outline : 'none', - padding : '20px' - - } -} - var App = React.createClass({ getInitialState: function() { - return { modalIsOpen: false, modalIsOpen2: false }; + return { modalIsOpen: false }; }, openModal: function() { this.setState({modalIsOpen: true}); }, - openModal2: function() { - this.setState({modalIsOpen2: true}); - }, - closeModal: function() { this.setState({modalIsOpen: false}); }, @@ -69,7 +39,6 @@ var App = React.createClass({ return (