File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+ import { ModalWindowContent } from '../ui-constants'
3
+
4
+ const GovToolsPanel = ( props ) => {
5
+ const { certLabel, clickFunction, children} = props
6
+ const handleAction = ( ) => {
7
+ console . log ( `[dApp][GovToolsPanel][${ certLabel } ] Building the certificate is called` )
8
+ // action here
9
+ clickFunction ( )
10
+ }
11
+
12
+ return (
13
+ < div className = { ModalWindowContent . contentPadding } >
14
+ { children }
15
+ < div className = "flex" >
16
+ < div className = "flex-auto mt-5" >
17
+ < button
18
+ className = "w-full py-1 rounded-md text-xl text-white font-semibold bg-orange-700 hover:bg-orange-800 active:bg-orange-500"
19
+ onClick = { handleAction }
20
+ >
21
+ Build Cert
22
+ </ button >
23
+ </ div >
24
+ </ div >
25
+ </ div >
26
+ )
27
+ }
28
+
29
+ export default GovToolsPanel
You can’t perform that action at this time.
0 commit comments