Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  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. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement