From d5b8f0ffbbde5fb8d41c3abb4b0969b962746b52 Mon Sep 17 00:00:00 2001 From: jloup Date: Sun, 13 May 2018 23:04:56 +0200 Subject: JS factorization + clean. --- cmd/web/js/poloniex.jsx | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'cmd/web/js/poloniex.jsx') diff --git a/cmd/web/js/poloniex.jsx b/cmd/web/js/poloniex.jsx index b28bc26..5c374c3 100644 --- a/cmd/web/js/poloniex.jsx +++ b/cmd/web/js/poloniex.jsx @@ -1,6 +1,7 @@ import Api from './api.js'; import React from 'react'; import {PFBalance, Assets} from './balance.js'; +import Panel from './panel.js'; class PoloniexController extends React.Component { constructor(props) { @@ -74,25 +75,6 @@ class PoloniexController extends React.Component { } } -class Panel extends React.Component { - render = () => { - if (this.props.component === null) { - return
; - } - - return ( -
-
-
-
{this.props.title}
-
-
- {this.props.component} -
-
); - } -} - class PoloniexBalance extends React.Component { render = () => { -- cgit v1.2.3