import React, { Component } from "react"; import { withRouter, } from "react-router-dom"; import { Row, Col, } from 'react-bootstrap' class IntroduccionPage extends Component { constructor(props) { super(props); this.state = { } } componentDidMount() { } checkMarkValues(){ const { arrDatos,arrCheck } = this.props.initState const { addContact } = arrDatos if(addContact.titulo!=='' && addContact.N !== '' && addContact.TEL!== ''){ arrCheck[5].checkMark = true; }else{ arrCheck[5].checkMark = false; } } render() { const { arrDatos, } = this.props.initState const { inputAlias, inputTel, addContact, } = arrDatos return (
{'Imagen'}

Mi contacto


Leyenda del Botón

{ addContact.titulo = event.target.value; this.initsetState({ arrDatos }); this.checkMarkValues(); } } type={'text'} placeholder={ 'Ejemplo: ¡Agrégame a tus contactos!' } value={addContact.titulo} />

Tu nombre o nombre de tu empresa

{ addContact.N = event.target.value; this.initsetState({ arrDatos }); this.checkMarkValues(); } } type={'text'} placeholder={ 'Ejemplo: Tarjeta.id Corp.' } value={ addContact.N } />

Teléfono

{ addContact.TEL = event.target.value; this.initsetState({ arrDatos }); this.checkMarkValues(); } } type={'text'} placeholder={ 'Ingresa el teléfono de contacto' } value={ addContact.TEL } />

Correo electrónico

{ addContact.EMAIL = event.target.value; this.initsetState({ arrDatos }) } } type={'text'} placeholder={ 'Ingresa tu correo electrónico' } value={ addContact.EMAIL } />

Sitio web

{ addContact.URL = event.target.value; this.initsetState({ arrDatos }) } } type={'text'} placeholder={ 'Ingresa tu sitio web' } value={ addContact.URL } />

Dirección

{ addContact.ADR_intl = event.target.value; this.initsetState({ arrDatos }) } } type={'text'} placeholder={ 'Ingresa tu dirección' } value={ addContact.ADR_intl } />

Código postal

{ addContact.ADR_postal = event.target.value; this.initsetState({ arrDatos }) } } type={'text'} placeholder={ 'Ingresa tu código postal' } value={ addContact.ADR_postal } />

Estado

{ addContact.ADR_parcel = event.target.value; this.initsetState({ arrDatos }) } } type={'text'} placeholder={ 'Ingresa tu estado' } value={ addContact.ADR_parcel } />

); } initsetState(param) { this.props.initsetState(param) return true } }; export default withRouter(IntroduccionPage)