-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
786 additions
and
550 deletions.
There are no files selected for viewing
28 changes: 24 additions & 4 deletions
28
packages/product-components/src/components/FeeRate/FeeRate.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
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
236 changes: 0 additions & 236 deletions
236
packages/suite/src/components/wallet/Fees/CustomFee.tsx
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
packages/suite/src/components/wallet/Fees/CustomFee/CurrentFee.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 { NetworkSymbol, NetworkType } from '@suite-common/wallet-config'; | ||
import { getFeeUnits } from '@suite-common/wallet-utils'; | ||
import { Icon, IconName, Row, Text } from '@trezor/components'; | ||
import { FeeRate } from '@trezor/product-components'; | ||
import { spacings } from '@trezor/theme'; | ||
|
||
import { Translation } from 'src/components/suite'; | ||
|
||
type CurrentFeeProps = { | ||
networkType: NetworkType; | ||
feeIconName: IconName; | ||
currentFee: string; | ||
symbol: NetworkSymbol; | ||
}; | ||
|
||
export const CurrentFee = ({ networkType, feeIconName, currentFee, symbol }: CurrentFeeProps) => ( | ||
<Row justifyContent="space-between"> | ||
<Text variant="tertiary" typographyStyle="hint"> | ||
<Translation id="TR_CURRENT_FEE_CUSTOM_FEES" /> | ||
</Text> | ||
<Text variant="default" typographyStyle="hint"> | ||
<Row alignItems="center" gap={spacings.xxs}> | ||
<Text> | ||
<FeeRate feeRate={currentFee} networkType={networkType} symbol={symbol} /> | ||
{getFeeUnits(networkType)} | ||
</Text> | ||
<Icon name={feeIconName} size="mediumLarge" /> | ||
</Row> | ||
</Text> | ||
</Row> | ||
); |
Oops, something went wrong.