SHARE
TWEET

Untitled

a guest Jun 17th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from 'react'
  2. import $ from 'jquery'
  3.  
  4. class Login extends Component {
  5.   componentDidMount() {
  6.     // here I want to open modal
  7.   }
  8.  
  9.   render() {
  10.     return (
  11.       <div className="modal fade WelcomeModal" id="WelcomeModal" tabIndex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  12.         <div className="modal-dialog modal-dialog-centered" role="document">
  13.           <div className="modal-content">
  14.             <div className="modal-header">
  15.               <div className="camera-box">
  16.                 <img alt="" src="/img/yellow-logo.svg"/>
  17.                 <h5 className="modal-title" id="exampleModalLabel">Welcome to the Cozy App!</h5>
  18.               </div>                            
  19.             </div>
  20.             <div className="modal-body">
  21.               <p className="text-center">On the following screens we╩╝ll ask you to register the Cozys in your home & adjust your temperature settings. You╩╝ll need the following information:</p>
  22.             </div>
  23.           </div>
  24.         </div>
  25.       </div>
  26.     )
  27.   }
  28. }
  29.      
  30. toggleModal = () => this.setState({
  31.               showLogin: !this.state.showLogin
  32.           })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top