snt-gas-relay/app/relayer-test.js

37 lines
922 B
JavaScript
Raw Normal View History

import React from 'react';
import ReactDOM from 'react-dom';
import { Tabs, Tab } from 'react-bootstrap';
import EmbarkJS from 'Embark/EmbarkJS';
import CallGasRelayed from './components/callgasrelayed';
import RND from 'Embark/contracts/RND';
import './relayer-test.css';
class App extends React.Component {
constructor(props) {
super(props);
}
_renderStatus(title, available){
let className = available ? 'pull-right status-online' : 'pull-right status-offline';
return <React.Fragment>
{title}
<span className={className}></span>
</React.Fragment>;
}
render(){
return (<div><h3>IdentityGasRelay - Usage Example</h3>
<Tabs defaultActiveKey={1} id="uncontrolled-tab-example">
<Tab eventKey={1} title="callGasRelayed">
<CallGasRelayed />
</Tab>
</Tabs>
</div>);
}
}
ReactDOM.render(<App></App>, document.getElementById('app'));