diff options
Diffstat (limited to 'cmd/web/js/account.jsx')
-rw-r--r-- | cmd/web/js/account.jsx | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/cmd/web/js/account.jsx b/cmd/web/js/account.jsx index 3dc8afd..988d840 100644 --- a/cmd/web/js/account.jsx +++ b/cmd/web/js/account.jsx | |||
@@ -1,27 +1,6 @@ | |||
1 | import Api from './api.js'; | 1 | import Api from './api.js'; |
2 | import React from 'react'; | 2 | import React from 'react'; |
3 | import classnames from 'classnames'; | 3 | import Panel from './panel.js'; |
4 | |||
5 | class Panel extends React.Component { | ||
6 | render = () => { | ||
7 | if (this.props.component === null) { | ||
8 | return <div></div>; | ||
9 | } | ||
10 | |||
11 | var className = classnames('row', this.props.topClassName); | ||
12 | |||
13 | return ( | ||
14 | <div className={className}> | ||
15 | <div className="box col-12"> | ||
16 | <div className="row"> | ||
17 | <div className="col-4">{this.props.title}</div> | ||
18 | </div> | ||
19 | <hr/> | ||
20 | {this.props.component} | ||
21 | </div> | ||
22 | </div>); | ||
23 | } | ||
24 | } | ||
25 | 4 | ||
26 | class AccountInformation extends React.Component { | 5 | class AccountInformation extends React.Component { |
27 | constructor(props) { | 6 | constructor(props) { |