-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathWalletAndProfile.tsx
61 lines (51 loc) · 1.42 KB
/
WalletAndProfile.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import React from "react";
import styled from "styled-components";
import { hoverLongTransitionTiming } from "styles/commonStyles";
import ArrowIcon from "svgs/icons/arrow.svg";
import { AddressOrName, IdenticonOrAvatar } from "components/ConnectWallet/AccountDisplay";
import { StyledArrowLink } from "components/StyledArrowLink";
import { ISettings } from "../../../index";
const Container = styled.div`
${hoverLongTransitionTiming}
display: flex;
justify-content: center;
align-items: center;
padding: 16px 32px;
gap: 24px;
border: 1px solid ${({ theme }) => theme.stroke};
border-radius: 30px;
> label {
color: ${({ theme }) => theme.primaryText};
font-size: 16px;
font-weight: 600;
}
:hover {
background-color: ${({ theme }) => theme.lightBlue};
}
`;
const AvatarAndAddressContainer = styled.div`
display: flex;
flex-direction: row;
gap: 8px;
`;
const ReStyledArrowLink = styled(StyledArrowLink)`
font-size: 14px;
> svg {
height: 14px;
width: 14px;
}
`;
const WalletAndProfile: React.FC<ISettings> = ({ toggleIsSettingsOpen }) => {
return (
<Container>
<AvatarAndAddressContainer>
<IdenticonOrAvatar />
<AddressOrName />
</AvatarAndAddressContainer>
<ReStyledArrowLink to={"/profile/stakes/1"} onClick={toggleIsSettingsOpen}>
My Profile <ArrowIcon />
</ReStyledArrowLink>
</Container>
);
};
export default WalletAndProfile;