-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indicate encrypted transactions in TX lists
- Loading branch information
Showing
5 changed files
with
63 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React, { FC } from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
import LockIcon from '@mui/icons-material/Lock' | ||
import { COLORS } from '../../../styles/theme/colors' | ||
import { RuntimeTransactionEncryptionEnvelope } from '../../../oasis-indexer/api' | ||
import Tooltip from '@mui/material/Tooltip' | ||
import { tooltipDelay } from '../../../styles/theme' | ||
|
||
type TransactionEncryptionStatusProps = { | ||
envelope?: RuntimeTransactionEncryptionEnvelope | ||
} | ||
|
||
export const TransactionEncrypted = () => { | ||
const { t } = useTranslation() | ||
return ( | ||
<Tooltip | ||
arrow | ||
placement="top" | ||
title={t('transaction.tooltips.txEncrypted')} | ||
enterDelay={tooltipDelay} | ||
enterNextDelay={tooltipDelay} | ||
> | ||
<LockIcon htmlColor={COLORS.eucalyptus} /> | ||
</Tooltip> | ||
) | ||
} | ||
|
||
export const TransactionEncryptionStatus: FC<TransactionEncryptionStatusProps> = ({ envelope }) => | ||
envelope ? <TransactionEncrypted /> : null |
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