1
1
import React , { useState } from 'react'
2
- import VoteDelationCard from '../../cards/voteDelegation'
3
2
import { getCertificateBuilder } from '../../../utils/cslTools'
3
+ import TabsComponent from '../tabsComponent'
4
+ import GovBasicFunctionsTab from './govBasicFunctionsTab'
5
+ import GovActionsTab from './govActionsTab'
6
+ import ConstitCommCertsTab from './constitCommCertsTab'
4
7
5
8
const Cip95AdditionalPart = ( { api, wasm, onWaiting, onError, getters, setters} ) => {
6
9
const [ currentCertsInTx , setCertInTx ] = useState ( [ ] )
@@ -27,18 +30,35 @@ const Cip95AdditionalPart = ({api, wasm, onWaiting, onError, getters, setters})
27
30
const newGetters = Object . assign ( getters , { currentCertsInTx, getCertBuilder} )
28
31
const newSetters = Object . assign ( setters , { handleAddingCertInTx} )
29
32
30
- return (
31
- < div className = "grid justify-items-stretch grid-cols-1 lg:grid-cols-5 gap-2" >
32
- < div >
33
- < VoteDelationCard
33
+ const data = [
34
+ {
35
+ label : 'Governance Basic Functions' ,
36
+ value : 'govBasicFuncs' ,
37
+ children : (
38
+ < GovBasicFunctionsTab
34
39
api = { api }
35
40
wasm = { wasm }
36
41
onWaiting = { onWaiting }
37
42
onError = { onError }
38
43
getters = { newGetters }
39
44
setters = { newSetters }
40
45
/>
41
- </ div >
46
+ ) ,
47
+ } ,
48
+ {
49
+ label : 'Governance Actions' ,
50
+ value : 'govActions' ,
51
+ children : < GovActionsTab /> ,
52
+ } ,
53
+ {
54
+ label : 'Constitutional Commitee Certs' ,
55
+ value : 'ccCerts' ,
56
+ children : < ConstitCommCertsTab /> ,
57
+ } ,
58
+ ]
59
+ return (
60
+ < div className = "block rounded-lg border bg-gray-900 border-gray-700" >
61
+ < TabsComponent tabsData = { data } />
42
62
</ div >
43
63
)
44
64
}
0 commit comments