Skip to content

Commit

Permalink
Hide Receive when logged in using EOA
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSachinK committed Feb 2, 2024
1 parent 11c062f commit f492d0b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions client/src/components/Account/AccountDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,16 @@ export const AccountDropdown = forwardRef<HTMLDivElement, AccountDropdownProps>(
</NavDropdownItem>
</ItemAndIconContainer>
)}
<ItemAndIconContainer onClick={handleReceiveClick}>
<StyledArrowDownCircle />

<NavDropdownItem>
Receive
</NavDropdownItem>
</ItemAndIconContainer>
{loginStatus != LoginStatus.EOA && (
<ItemAndIconContainer onClick={handleReceiveClick}>
<StyledArrowDownCircle />

<NavDropdownItem>
Receive
</NavDropdownItem>
</ItemAndIconContainer>
)}

<ItemAndIconContainer onClick={handleSendClick}>
<StyledArrowUpCircle />
Expand Down

0 comments on commit f492d0b

Please sign in to comment.