import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import { CrudAlmacen } from './table' import { Paper, Typography } from '@material-ui/core'; import { connect } from 'react-redux'; //actions import { getAlmacenes } from '../../../actions/almacen'; const styles = ({ root: { flexGrow: 1, marginTop: 30, } }); class Almacenes extends Component { constructor (props) { super(props) this.state = { dataRealF: [] }; this.props.dispatch(getAlmacenes()).then((res) => { if (res) { this.setState({ dataRealF: res.data, }); } }) //console.log("Pedido - LUEGO DE THEN ", this.state.dataRealF) } render() { const {dataRealF} = this.state; //console.log ("aNTESZSSSS?") const { classes } = this.props; return (