diff --git a/packages/yoroi-extension/app/UI/components/icons/Switch.tsx b/packages/yoroi-extension/app/UI/components/icons/Switch.tsx
new file mode 100644
index 0000000000..3983cb88e7
--- /dev/null
+++ b/packages/yoroi-extension/app/UI/components/icons/Switch.tsx
@@ -0,0 +1,16 @@
+import React from 'react';
+
+export const Switch = () => {
+ return (
+
+ );
+};
diff --git a/packages/yoroi-extension/app/UI/components/icons/index.ts b/packages/yoroi-extension/app/UI/components/icons/index.ts
index c70a9049fe..c7d598b40b 100644
--- a/packages/yoroi-extension/app/UI/components/icons/index.ts
+++ b/packages/yoroi-extension/app/UI/components/icons/index.ts
@@ -1,17 +1,18 @@
+import { Cancel } from './Cancel';
+import { ChevronDown } from './ChevronDown';
+import { ChevronUp } from './ChevronUp';
+import { ChipArrowDown } from './ChipArrowDown';
+import { ChipArrowUp } from './ChipArrowUp';
import { CloseIcon } from './CloseIcon';
-import { VisibilityOff } from './VisibilityOff';
-import { VisibilityOn } from './VisibilityOn';
-import { Copy } from './Copy';
import { Copied } from './Copied';
-import { ChipArrowUp } from './ChipArrowUp';
-import { ChipArrowDown } from './ChipArrowDown';
-import { Send } from './Send';
-import { Cancel } from './Cancel';
-import { Staking } from './Staking';
+import { Copy } from './Copy';
import { Expand } from './Expand';
-import { ChevronUp } from './ChevronUp';
-import { ChevronDown } from './ChevronDown';
import { Search } from './Search';
+import { Send } from './Send';
+import { Staking } from './Staking';
+import { Switch } from './Switch';
+import { VisibilityOff } from './VisibilityOff';
+import { VisibilityOn } from './VisibilityOn';
export const Icon = {
CloseIcon,
@@ -28,4 +29,5 @@ export const Icon = {
ChevronDown,
ChevronUp,
Search,
+ Switch,
};
diff --git a/packages/yoroi-extension/app/UI/features/portfolio/common/components/PortfolioHeader.tsx b/packages/yoroi-extension/app/UI/features/portfolio/common/components/PortfolioHeader.tsx
index bab80ab733..da588c26f3 100644
--- a/packages/yoroi-extension/app/UI/features/portfolio/common/components/PortfolioHeader.tsx
+++ b/packages/yoroi-extension/app/UI/features/portfolio/common/components/PortfolioHeader.tsx
@@ -1,8 +1,9 @@
-import { Box, Skeleton, Stack, Typography, useTheme } from '@mui/material';
+import { Box, IconButton, Skeleton, Stack, styled, Typography, useTheme } from '@mui/material';
import BigNumber from 'bignumber.js';
import React from 'react';
import LocalStorageApi from '../../../../../api/localStorage/index';
import { SearchInput, Tooltip } from '../../../../components';
+import { Switch } from '../../../../components/icons/Switch';
import { useCurrencyPairing } from '../../../../context/CurrencyContext';
import { WalletBalance } from '../../../../types/currrentWallet';
import { usePortfolio } from '../../module/PortfolioContextProvider';
@@ -13,6 +14,14 @@ import { useStrings } from '../hooks/useStrings';
import { HeaderPrice } from './HeaderPrice';
import PnlTag from './PlnTag';
+const IconWrapper: any = styled(IconButton)(({ theme }: any) => ({
+ '& svg': {
+ '& path': {
+ fill: theme.palette.ds.el_gray_medium,
+ },
+ },
+}));
+
export function formatValue(value: BigNumber): string {
if (value.isZero()) {
return '0';
@@ -114,11 +123,7 @@ const PortfolioHeader = ({ walletBalance, setKeyword, isLoading, tooltipTitle }:
{String(accountPair?.from.value)}
)}
-
+
@@ -157,22 +162,15 @@ const LoadingSkeleton = () => (
);
-const CurrencyDisplay = ({ from, to, handleCurrencyChange }) => (
-
-
+const CurrencyDisplay = ({ from, handleCurrencyChange }) => (
+
+
{from}
-
- /{to}
-
-
+
+
+
+
);
const Skeletons = ({ theme }) => (