Skip to content

Commit

Permalink
fix wallet connect avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Jun 25, 2024
1 parent 229e79c commit 50a9857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/components/atoms/Avatar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const Wrapper = styled.div<{
width: ${(props) => `${props.dimensions.icon.toString()}px`};
padding: 3.5px 0 0 0px;
margin: 0 0 2.5px 0;
stroke: ${(props) => (props.hasOwner ? props.theme.colors.icon.alt2.fill : props.theme.colors.icon.alt3.fill)};
color: ${(props) => (props.hasOwner ? props.theme.colors.icon.alt2.fill : props.theme.colors.icon.alt3.fill)};
fill: ${(props) => (props.hasOwner ? props.theme.colors.icon.alt2.fill : props.theme.colors.icon.alt3.fill)};
}
pointer-events: none;
Expand Down
15 changes: 0 additions & 15 deletions src/wallet/WalletConnect/WalletConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ export default function WalletConnect(_props: { callback?: () => void }) {
}
}, [showWallet, arProvider.walletAddress, arProvider.profile]);

// React.useEffect(() => {
// if (arProvider.profile && !arProvider.profile.id) {
// setShowManage(true);
// }
// }, [arProvider.profile]);

function handlePress() {
if (arProvider.walletAddress) {
setShowWalletDropdown(!showWalletDropdown);
Expand Down Expand Up @@ -87,15 +81,6 @@ export default function WalletConnect(_props: { callback?: () => void }) {
>
<S.Wrapper>
<S.PWrapper>
{/* <S.ProfileWrapper>
{arProvider.walletAddress && (
<Button
type={'alt1'}
label={arProvider.profile && arProvider.profile.id ? language.editProfile : language.createProfile}
handlePress={() => setShowManage(true)}
/>
)}
</S.ProfileWrapper> */}
<Avatar owner={arProvider.profile} dimensions={{ wrapper: 32.5, icon: 21.5 }} callback={handlePress} />
</S.PWrapper>
{showWalletDropdown && (
Expand Down

0 comments on commit 50a9857

Please sign in to comment.