@@ -2,6 +2,7 @@ import React from 'react';
2
2
import { observer } from 'mobx-react' ;
3
3
import { merge } from 'glamor' ;
4
4
import JSONTree from 'react-json-tree' ;
5
+ import ReactTooltip from 'react-tooltip' ;
5
6
6
7
import SelectMenu from './SelectMenu' ;
7
8
@@ -12,7 +13,8 @@ import $U from '../styles/_.utils';
12
13
import style from '../styles/RenderFormData' ;
13
14
14
15
export default observer ( ( { store, handlers } ) =>
15
- < div className = "tree" >
16
+ < div >
17
+ < ReactTooltip />
16
18
< h4 className = { merge ( style . heading , $U . clearfix ) } >
17
19
< div className = { $U . left } >
18
20
< Icons . FaTh className = { style . icon } /> Form
@@ -21,6 +23,17 @@ export default observer(({ store, handlers }) =>
21
23
< SelectMenu store = { store } handlers = { handlers } />
22
24
</ div >
23
25
</ h4 >
26
+ < div className = { merge ( $U . clearfix ) } >
27
+ < button type = "button" className = { style . controls . button } onClick = { handlers . handleFormOnSubmit } data-tip = "SUBMIT" >
28
+ < Icons . FaDotCircleO className = { style . controls . icon } />
29
+ </ button >
30
+ < button type = "button" className = { style . controls . button } onClick = { handlers . handleFormOnClear } data-tip = "CLEAR" >
31
+ < Icons . FaEraser className = { style . controls . icon } />
32
+ </ button >
33
+ < button type = "button" className = { style . controls . button } onClick = { handlers . handleFormOnReset } data-tip = "RESET" >
34
+ < Icons . FaRefresh className = { style . controls . icon } />
35
+ </ button >
36
+ </ div >
24
37
< JSONTree
25
38
hideRoot
26
39
data = { parseFormData ( store . selected . form ) }
0 commit comments