import React from 'react' import { Helmet } from 'react-helmet' import { connect } from 'react-redux' import { deleteData, updateData } from '../../../actions/index' import { history } from '../../../index' class AdminDetail extends React.Component { constructor(props, context) { super(props, context) this.state = { isInEdition: false, } } render() { const { message, onDataUpdate, onDataDelete, results, target, } = this.props const { isInEdition } = this.state const title = target.charAt(0).toUpperCase() + target.slice(1) return (
{message}
) : (
results.length === 1 && (