-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update display txdatail and msgcreatevalidator
- Loading branch information
Tien Nam Dao
committed
Jan 9, 2023
1 parent
714ea4c
commit f640a5a
Showing
9 changed files
with
209 additions
and
70 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
components/Card/CardInfo/Components/ValidatorCommission.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Tabs from 'components/Tabs/Tabs' | ||
|
||
type ValidatorCommissionProps = { | ||
commission?: CommissionRates | ||
} | ||
|
||
export default function ValidatorCommission({ commission }: ValidatorCommissionProps) { | ||
return ( | ||
<div style={{ maxWidth: '885px', maxHeight: '200px', overflowY: 'auto' }}> | ||
<Tabs | ||
tabs={[ | ||
{ title: 'Rate', id: 'rate', padding: ' ' }, | ||
{ title: 'Max Rate', id: 'maxRate', padding: ' ' }, | ||
{ title: 'Max Chane Rate', id: 'maxChangeRate', padding: ' ' } | ||
]} | ||
contents={{ | ||
rate: <span className="text text-base">{commission?.rate}</span>, | ||
maxRate: <span className="text text-base">{commission?.maxRate}</span>, | ||
maxChangeRate: <span className="text text-base">{commission?.maxChangeRate}</span> | ||
}} | ||
classes="padding-top-xs" | ||
headerBorder={false} | ||
headerPadding=" " | ||
/> | ||
</div> | ||
) | ||
} |
31 changes: 31 additions & 0 deletions
31
components/Card/CardInfo/Components/ValidatorDescription.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Tabs from 'components/Tabs/Tabs' | ||
|
||
type ValidatorDescriptionProps = { | ||
description?: ValidatorData | ||
} | ||
|
||
export default function ValidatorDescription({ description }: ValidatorDescriptionProps) { | ||
return ( | ||
<div style={{ maxWidth: '885px', maxHeight: '200px', overflowY: 'auto' }}> | ||
<Tabs | ||
tabs={[ | ||
{ title: 'Moniker', id: 'moniker', padding: ' ' }, | ||
{ title: 'Identity', id: 'identity', padding: ' ' }, | ||
{ title: 'Website', id: 'website', padding: ' ' }, | ||
{ title: 'Security Contact', id: 'securityContact', padding: ' ' }, | ||
{ title: 'Details', id: 'details', padding: ' ' } | ||
]} | ||
contents={{ | ||
moniker: <span className="text text-base">{description?.moniker}</span>, | ||
identity: <span className="text text-base">{description?.identity}</span>, | ||
website: <span className="text text-base">{description?.website}</span>, | ||
securityContact: <span className="text text-base">{description?.securityContact}</span>, | ||
details: <span className="text text-base">{description?.details}</span> | ||
}} | ||
classes="padding-top-xs" | ||
headerBorder={false} | ||
headerPadding=" " | ||
/> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.