-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #340 from forbole/dev
Dev
- Loading branch information
Showing
28 changed files
with
310 additions
and
396 deletions.
There are no files selected for viewing
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
40 changes: 40 additions & 0 deletions
40
components/ConfirmTransactionDialog/ConfirmStageContent/SetWithdrawAddressContent.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,40 @@ | ||
import React from 'react' | ||
import { Box, Divider, Typography, useTheme } from '@material-ui/core' | ||
import useTranslation from 'next-translate/useTranslation' | ||
import WithdrawIcon from '../../../assets/images/icons/icon_withdraw_tx.svg' | ||
import ValidatorAvatar from '../../ValidatorAvatar' | ||
import cryptocurrencies from '../../../misc/cryptocurrencies' | ||
|
||
interface SetWithdrawAddressContentProps { | ||
msgs: TransactionMsgSetWithdrawAddress[] | ||
account: Account | ||
} | ||
|
||
const SetWithdrawAddressContent: React.FC<SetWithdrawAddressContentProps> = ({ msgs, account }) => { | ||
const { t } = useTranslation('common') | ||
|
||
return ( | ||
<> | ||
<Box display="flex" flexDirection="column" alignItems="center" my={4}> | ||
<Typography variant="h4">{t('edit reward address')}</Typography> | ||
</Box> | ||
<Divider /> | ||
{msgs.map((msg, i) => ( | ||
<React.Fragment key={String(i)}> | ||
<Box my={1}> | ||
<Typography>{t('delegator address')}</Typography> | ||
<Typography color="textSecondary">{msg.value.delegatorAddress}</Typography> | ||
</Box> | ||
<Divider /> | ||
<Box my={1}> | ||
<Typography>{t('new reward address')}</Typography> | ||
<Typography color="textSecondary">{msg.value.withdrawAddress}</Typography> | ||
</Box> | ||
<Divider /> | ||
</React.Fragment> | ||
))} | ||
</> | ||
) | ||
} | ||
|
||
export default SetWithdrawAddressContent |
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.