import React, { Component, version } from "react"; import { withRouter, } from "react-router-dom"; import { Row, } from 'react-bootstrap' import RedesSociales from "../../componentes/RedesSociales"; class IntroduccionPage extends Component { constructor(props) { super(props); this.state = { } } componentDidMount() { } onChangeParentData(opt, value) { const { arrDatos, } = this.props.initState const { facebook, instagram, linkedin, youtube, twitter, site,zoom,behance,blog,deviantart,discord,dribble,drive,dropbox,feed,flickr,foursquare,github,hangout,tarjetaid,kickstart,messenger,photos,pinterest,reddit,snapchat,soundcloud,spotify,tiktok,tumblr,twitch,vimeo } = arrDatos value = value.trim() eval(opt).url = value // eval(opt).checked = ( value != '' ? true : false ) this.props.initsetState({ arrDatos }); this.checkMarkValues(); } checkMarkValues(){ const { arrDatos,arrCheck } = this.props.initState const { facebook,instagram,linkedin,youtube,twitter,site,zoom,behance,blog,deviantart,discord,dribble,drive,dropbox,feed,flickr,foursquare,github,hangout,tarjetaid,kickstart,messenger,photos,pinterest,reddit,snapchat,soundcloud,spotify,tiktok,tumblr,twitch,vimeo } = arrDatos if(facebook.url!=''){ arrCheck[9].checkMark = true; }else{ arrCheck[9].checkMark = false; } } render() { const { arrDatos,showSocialNetworks } = this.props.initState let {iconVersion} = this.props.initState; const { facebook,instagram,linkedin,youtube,twitter,site } = arrDatos return (
{/*

Facebook

{ this.onChangeParentData('facebook', event.target.value) }} type={'text'} placeholder={ 'Facebook' } value={ facebook.url }/>

Instagram

{ this.onChangeParentData('instagram', event.target.value) }} type={'text'} placeholder={ 'Instagram' } value={ instagram.url }/>

Linkedin

{ this.onChangeParentData('linkedin', event.target.value) }} type={'text'} placeholder={ 'Linkedin' } value={ linkedin.url }/>

Youtube

{ this.onChangeParentData('youtube', event.target.value) }} type={'text'} placeholder={ 'Youtube' } value={ youtube.url }/>

Twitter

{ this.onChangeParentData('twitter', event.target.value) }} type={'text'} placeholder={ 'Twitter' } value={ twitter.url }/>

Sitio Web

{ this.onChangeParentData('site', event.target.value) }} type={'text'} placeholder={ 'Sitio Web' } value={ site.url }/> */}
); } initsetState(param) { this.props.initsetState(param) return true } }; export default withRouter(IntroduccionPage)