Skip to content

Commit 3f38d39

Browse files
committed
Created tabs for gov actions
1 parent f7227a5 commit 3f38d39

File tree

3 files changed

+130
-0
lines changed

3 files changed

+130
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from 'react'
2+
import TabsComponent from '../tabsComponent'
3+
4+
const ConstitCommCertsTab = () => {
5+
const data = [
6+
{
7+
label: 'Authorize CC Hot Credential',
8+
value: 'authHotCred',
9+
children: <></>,
10+
},
11+
{
12+
label: 'Resign CC Cold Credential',
13+
value: 'resignColdCredential',
14+
children: <></>,
15+
},
16+
]
17+
18+
return (
19+
<div className="mt-2">
20+
<TabsComponent tabsData={data} />
21+
</div>
22+
)
23+
}
24+
25+
export default ConstitCommCertsTab
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import React from 'react'
2+
import TabsComponent from '../tabsComponent'
3+
4+
const GovActionsTab = () => {
5+
const data = [
6+
{
7+
label: 'Motion of no-confidence',
8+
value: 'motionNoConfidence',
9+
children: <></>,
10+
},
11+
{
12+
label: 'Update Cons. Committe',
13+
value: 'updConsComm',
14+
children: <></>,
15+
},
16+
{
17+
label: 'Update Constitution',
18+
value: 'updConstitution',
19+
children: <></>,
20+
},
21+
{
22+
label: 'Hard-Fork Initation',
23+
value: 'hfInit',
24+
children: <></>,
25+
},
26+
{
27+
label: 'Treasury Withdrawal',
28+
value: 'treasuryWithdrawal',
29+
children: <></>,
30+
},
31+
{
32+
label: 'Info Action',
33+
value: 'infoAct',
34+
children: <></>,
35+
},
36+
]
37+
38+
return (
39+
<div className="mt-2">
40+
<TabsComponent tabsData={data} />
41+
</div>
42+
)
43+
}
44+
45+
export default GovActionsTab
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import React from 'react'
2+
import TabsComponent from '../tabsComponent'
3+
import VoteDelegationPanel from '../../cards/voteDelegationPanel'
4+
5+
const GovBasicFunctionsTab = ({api, wasm, onWaiting, onError, getters, setters}) => {
6+
const data = [
7+
{
8+
label: 'Vote Delegation',
9+
value: 'voteDeleg',
10+
children: (
11+
<VoteDelegationPanel
12+
api={api}
13+
wasm={wasm}
14+
onWaiting={onWaiting}
15+
onError={onError}
16+
getters={getters}
17+
setters={setters}
18+
/>
19+
),
20+
},
21+
{
22+
label: 'DRep Registration',
23+
value: 'drepReg',
24+
children: <></>,
25+
},
26+
{
27+
label: 'DRep Update',
28+
value: 'drepUpdate',
29+
children: <></>,
30+
},
31+
{
32+
label: 'DRep Retirement',
33+
value: 'drepRet',
34+
children: <></>,
35+
},
36+
{
37+
label: 'Vote',
38+
value: 'vote',
39+
children: <></>,
40+
},
41+
{
42+
label: 'Register Stake Key',
43+
value: 'regStakeKey',
44+
children: <></>,
45+
},
46+
{
47+
label: 'Unregister Stake Key',
48+
value: 'unregStakeKey',
49+
children: <></>,
50+
},
51+
]
52+
53+
return (
54+
<div className="mt-2">
55+
<TabsComponent tabsData={data} />
56+
</div>
57+
)
58+
}
59+
60+
export default GovBasicFunctionsTab

0 commit comments

Comments
 (0)