import React, { Component } from 'react'; import Flash from './Flash'; import LoadingSpinner from './LoadingSpinner'; import PropTypes from 'prop-types'; import SettingsModule from './SettingsModule'; import SettingsSigns from './SettingsSigns'; import BuskPay from './BuskPay.js'; import { StripeConnectTipsRedirect } from './AlertDialogs/StripeConnect'; class SettingsBuskerBuskpay extends Component { constructor(props) { super(props); this.state = { fakeUser: { nickname: 'srAvisos', }, flash: {}, urlPrefix: { link: window.location.origin, text: window.location.host, }, }; this.handleFlashClose = this.handleFlashClose.bind(this); } UNSAFE_componentWillReceiveProps(nextProps) { const { flash } = this.props; if (flash !== nextProps.flash) { // console.log('flash es diferente, nextProps.flash:', nextProps.flash); this.setState({ flash: nextProps.flash, }); } } handleFlashClose() { this.setState({ flash: {}, }); } render() { const { isFetchingUser, user } = this.props; const { flash } = this.state; return (