Skip to content

Commit 3761fcb

Browse files
committed
created common component for gov actions
1 parent 3f38d39 commit 3761fcb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/components/cards/govToolsPanel.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)