Skip to content

Commit

Permalink
owned button conditional render
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Lysak committed Sep 3, 2024
1 parent 92d26f5 commit 75d223e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/components/@molecules/ProfileEditor/Avatar/AvatarNFT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ const SelectedNFTImage = styled.img(
const FilterContainer = styled.div(
({ theme }) => css`
width: 100%;
display: grid;
grid-template-columns: 100px 1fr;
display: flex;
align-items: center;
gap: ${theme.space['4']};
& > button {
flex-basis: 100px;
margin-bottom: -${theme.space['4']};
${mq.sm.min(css`
margin-bottom: -${theme.space['6']};
Expand Down Expand Up @@ -430,13 +430,15 @@ export const AvatarNFT = ({
innerContent = (
<>
<FilterContainer>
<Button onClick={handleSelectAddress}>
{t(
`input.profileEditor.tabs.avatar.nft.address.${
selectedAddress === address ? 'owned' : 'other'
}`,
)}
</Button>
{address !== ethAddress && (
<Button onClick={handleSelectAddress}>
{t(
`input.profileEditor.tabs.avatar.nft.address.${
selectedAddress === address ? 'owned' : 'other'
}`,
)}
</Button>
)}
<DialogInput
icon={<MagnifyingGlassSVG />}
hideLabel
Expand Down

0 comments on commit 75d223e

Please sign in to comment.