import React, { Component } from "react"; import { withRouter, } from "react-router-dom"; import { Row } from 'react-bootstrap' class IntroduccionPage extends Component { constructor(props) { super(props); this.textInputNombre = React.createRef(); this.state = { } } componentDidMount() { const { formValidate } = this.props.initState; const { isValidate,input } = formValidate; if(isValidate){ if(input==="nombre"){ this.textInputNombre.current.focus(); } } } onChangeParentData(opt, value) { const { arrDatos,arrCheck } = this.props.initState const { descripcion } = arrDatos if(opt === 'nombre') { descripcion.nombre = value } else if(opt === 'cargo') { descripcion.cargo = value } else if(opt === 'empresa') { descripcion.empresa = value } else if(opt === 'slogan') { descripcion.slogan = value } this.props.initsetState({ arrDatos,arrCheck }) if(descripcion.nombre!=='' && descripcion.cargo!=='' && descripcion.empresa!==''){ arrCheck[2].checkMark = true; }else{ arrCheck[2].checkMark = false; } } render() { const { arrDatos } = this.props.initState const { descripcion } = arrDatos const { nombre, cargo, empresa, slogan } = descripcion return (
Nombre
Cargo
Empresa
Slogan