Skip to content

Commit bcbbf87

Browse files
authored
Merge pull request #204 from comit-network/minor-ui-improvement
Minor UI improvements
2 parents edac99e + 48550ae commit bcbbf87

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

extension/src/App.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SettingsIcon } from "@chakra-ui/icons";
2-
import { Box, Center, ChakraProvider, Heading, IconButton } from "@chakra-ui/react";
2+
import { Box, Center, ChakraProvider, Flex, Heading, IconButton, Spacer } from "@chakra-ui/react";
33
import { faBug } from "@fortawesome/free-solid-svg-icons";
44
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
55
import * as React from "react";
@@ -55,13 +55,22 @@ const App = () => {
5555
return (
5656
<ChakraProvider theme={theme}>
5757
<Box h={600} w={400}>
58-
<IconButton
59-
aria-label="Settings"
60-
icon={<SettingsIcon />}
61-
onClick={() => browser.runtime.openOptionsPage()}
62-
/>
6358
{walletStatus?.status === Status.Loaded
6459
&& <>
60+
<Flex>
61+
<Center p="2">
62+
<Heading size="md">Waves Wallet</Heading>
63+
</Center>
64+
<Spacer />
65+
<Box>
66+
<IconButton
67+
aria-label="Settings"
68+
icon={<SettingsIcon />}
69+
onClick={() => browser.runtime.openOptionsPage()}
70+
/>
71+
</Box>
72+
</Flex>
73+
6574
{balanceUpdates && <WalletBalances balanceUpdates={balanceUpdates} />}
6675
{!signLoan && !swapToSign && <AddressQr />}
6776
{!signLoan && !swapToSign && <WithdrawAll />}

extension/src/components/Balances.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function balanceEntry(balance: BalanceEntry) {
4242
}
4343

4444
function WalletBalances({ balanceUpdates }: BalancesProps) {
45-
let elements = balanceUpdates.map((be) => balanceEntry(be));
45+
let elements = balanceUpdates
46+
.sort((a, b) => a.ticker.localeCompare(b.ticker))
47+
.map((be) => balanceEntry(be));
4648

4749
return (
4850
<HStack justify="center">

extension/src/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// TODO: All field names should be camelCase
22

3-
export const USDT_TICKER = "USDt";
3+
export const USDT_TICKER = "L-USDt";
44
export const BTC_TICKER = "L-BTC";
55

66
export enum Status {

0 commit comments

Comments
 (0)