61 |
62 | {connectedProvider.status === "successful" && (
63 | <>
64 |
65 |
66 |
67 | {getPartiallyHiddenEthereumAddress(connectedProvider.data.account)}
68 |
69 |
70 |
71 |
72 |
73 |
79 | {depositWarningModal.status === "open" && (
80 |
setDepositWarningModal({ status: "closed" })}
84 | />
85 | )}
86 | >
87 | )}
88 |
89 | );
90 | };
91 |
--------------------------------------------------------------------------------
/src/views/settings/settings.view.tsx:
--------------------------------------------------------------------------------
1 | import { FC, useState } from "react";
2 |
3 | import { getCurrency, setCurrency } from "src/adapters/storage";
4 | import { ReactComponent as CheckedIcon } from "src/assets/icons/checkbox-checked.svg";
5 | import { ReactComponent as UncheckedIcon } from "src/assets/icons/checkbox-unchecked.svg";
6 | import { ReactComponent as CnyIcon } from "src/assets/icons/currencies/cny.svg";
7 | import { ReactComponent as EurIcon } from "src/assets/icons/currencies/eur.svg";
8 | import { ReactComponent as GbpIcon } from "src/assets/icons/currencies/gbp.svg";
9 | import { ReactComponent as JpyIcon } from "src/assets/icons/currencies/jpy.svg";
10 | import { ReactComponent as UsdIcon } from "src/assets/icons/currencies/usd.svg";
11 | import { ReactComponent as ConversionIcon } from "src/assets/icons/currency-conversion.svg";
12 | import { useEnvContext } from "src/contexts/env.context";
13 | import { Currency } from "src/domain";
14 | import { useSettingsStyles } from "src/views/settings/settings.styles";
15 | import { Card } from "src/views/shared/card/card.view";
16 | import { Header } from "src/views/shared/header/header.view";
17 | import { Typography } from "src/views/shared/typography/typography.view";
18 |
19 | export const Settings: FC = () => {
20 | const classes = useSettingsStyles();
21 | const env = useEnvContext();
22 | const [preferredCurrency, setPreferredCurrency] = useState