Skip to content

Commit

Permalink
Merge pull request #1866 from oasisprotocol/lw/your-acc-banner
Browse files Browse the repository at this point in the history
Remove "This is your account" banner
  • Loading branch information
lukaw3d authored Apr 4, 2024
2 parents d091cdc + e1546b8 commit f5f63e9
Show file tree
Hide file tree
Showing 10 changed files with 208 additions and 292 deletions.
1 change: 1 addition & 0 deletions .changelog/1866.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove "This is your account" banner
9 changes: 3 additions & 6 deletions src/app/pages/AccountPage/Features/AccountSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,13 @@ export function AccountSummary({
return (
<>
<Box margin={{ bottom: 'small' }}>
{walletHasAccounts && wallet?.address === address && (
<AlertBox status="ok-weak">{t('account.summary.yourAccount', 'This is your account.')}</AlertBox>
)}
{walletHasAccounts && wallet?.address !== address && (
<AlertBox status="warning">
{(!walletHasAccounts || wallet?.address !== address) && (
<AlertBox status="error">
{t('account.summary.notYourAccount', 'This is not your account.')}
</AlertBox>
)}
{!walletHasAccounts && (
<AlertBox status="warning">
<AlertBox status="error">
<Trans
i18nKey="account.summary.noWalletIsOpen"
t={t}
Expand Down
Loading

0 comments on commit f5f63e9

Please sign in to comment.