Skip to content

Commit

Permalink
feat: do not show evm addr if not claimed
Browse files Browse the repository at this point in the history
  • Loading branch information
anukulpandey committed Jul 18, 2023
1 parent 3ecf8ff commit 829115e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/ui-kit/components/organisms/AccountSelector/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export interface Props {
source?: string,
isSelected?: boolean,
onSelect?: (...args: any[]) => any,
className?: string
className?: string,
isEvmClaimed?:boolean,
}

const Account = ({
Expand All @@ -21,6 +22,7 @@ const Account = ({
evmAddress,
source,
isSelected,
isEvmClaimed,
onSelect,
className
}: Props): JSX.Element => (
Expand Down Expand Up @@ -59,7 +61,7 @@ const Account = ({
</div>

{
!!evmAddress &&
!!evmAddress && isEvmClaimed!=false &&
<div className='uik-account-selector-account__address'>
<div>{localizedStrings.reef_evm_address}: { formatAddress(evmAddress) }</div>
<CopyButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export type Account = {
name?: string,
address: string,
evmAddress?: string,
source?: string
source?: string,
isEvmClaimed?:boolean,
}

export type Network = 'mainnet' | 'testnet'
Expand Down Expand Up @@ -158,6 +159,7 @@ const AccountSelector = ({
address={account.address}
evmAddress={account.evmAddress}
source={account.source}
isEvmClaimed={account.isEvmClaimed}
onSelect={() => select(account)}
isSelected={isSelected(account)}
/>
Expand Down

0 comments on commit 829115e

Please sign in to comment.