Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {Component} from 'react';
  2.  
  3. import BackLink from '../common/BackLink';
  4. import BaseComponent from "../common/BaseComponent";
  5. import RelocationThreeOne from "./RelocationThreeOne";
  6.  
  7. class RelocationTwoTwo extends BaseComponent {
  8.     constructor(props) {
  9.         super(props);
  10.  
  11.         this.state = {
  12.             child: false
  13.         };
  14.        
  15.         this.handleClick = this.handleClick.bind(this);
  16.     }
  17.  
  18.     handleClick(e) {
  19.         this.setState({
  20.             child: true
  21.         })
  22.     }
  23.  
  24.     render() {
  25.         return (
  26.             !this.state.child ?
  27.             <div className="calculator-cont" id="relocation-2-2">
  28.                 <div className="calculator-cont-item cont-center">
  29.                     <h3>Размер перевозимого офиса</h3>
  30.                     <div className="inp-txt-calculator-cont">
  31.                         <span>У нас в офисе</span>
  32.                         <input type="text" placeholder="10"/>
  33.                             <span>рабочих мест</span>
  34.                     </div>
  35.                     <div className="text-center btn-cont">
  36.                         <button onClick={this.handleClick} className="btn" type="button">Выбрать размер офиса</button>
  37.                     </div>
  38.                     <BackLink handleClickBack={this.handleClickBack.bind(this)} parentNumber={this.props.parent} />
  39.                 </div>
  40.             </div>
  41.  
  42.             : <RelocationThreeOne/>
  43.         );
  44.     }
  45. }
  46.  
  47. export default RelocationTwoTwo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement