import React from 'react' import { Row, Col, Content, Box, DataTable, Inputs, Button } from 'adminlte-2-react' import Details from './details' import './explorer.css' const { Text } = Inputs const axios = require('axios').default const SERVER = 'https://p2wdb.fullstack.cash/' const EXPLORER_URL = 'https://explorer.bitcoin.com/bch/tx/' let _this class Explorer extends React.Component { constructor (props) { super(props) _this = this this.state = { showEntry: false, data: [], entries: [], entryData: null, addId: '' } this.firstColumns = [ { title: 'Created At', data: 'createdAt' }, { title: 'Transaction', data: 'txid', render: txid => ( {txid.subString} ) }, { title: 'Hash', data: 'hash', render: hash => ( {hash.subString} ) }, { title: 'App Id', data: 'appId' } ] } render () { const { data, entryData } = _this.state return ( {!entryData && (