-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add address and copy button to wallets (#378)
* feat: add address and copy button to wallets * feat: move header to left margin * feat: add pointer style
- Loading branch information
Showing
11 changed files
with
83 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import styled from '@emotion/styled' | ||
import ContentCopyRoundedIconMui from '@mui/icons-material/ContentCopyRounded' | ||
import { Typography as TypographyMui } from 'decentraland-ui2' | ||
import { Description as DescriptionGlobal } from '../Typography' | ||
|
||
export const Header = styled('div')({ marginTop: '14px' }) | ||
|
||
export const Description = styled(DescriptionGlobal)({ display: 'flex', alignItems: 'center' }) | ||
|
||
export const Address = styled(TypographyMui)({ | ||
color: '#fcfcfc99', | ||
fontSize: '14px', | ||
lineHeight: '24px', | ||
fontWeight: 500, | ||
marginLeft: '8px', | ||
marginRight: '8px' | ||
}) | ||
|
||
export const ContentCopyRoundedIcon = styled(ContentCopyRoundedIconMui)({ | ||
cursor: 'pointer' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function shortening(address: string): string { | ||
return address ? `${address.slice(0, 4)}...${address.slice(-4)}` : '' | ||
} |