Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
7b2872c8
Commit
7b2872c8
authored
Jan 25, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address title: second line updates
Fixes #1537
parent
652620a7
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
28 deletions
+35
-28
dots.svg
icons/dots.svg
+5
-0
vertical_dots.svg
icons/vertical_dots.svg
+0
-3
name.d.ts
public/icons/name.d.ts
+1
-1
SolidityscanReport.tsx
ui/address/SolidityscanReport.tsx
+2
-2
AddressEnsDomains.tsx
ui/address/ensDomains/AddressEnsDomains.tsx
+8
-4
AccountActionsMenu.tsx
ui/shared/AccountActionsMenu/AccountActionsMenu.tsx
+6
-8
NetworkExplorers.tsx
ui/shared/NetworkExplorers.tsx
+7
-2
AddressAddToWallet.tsx
ui/shared/address/AddressAddToWallet.tsx
+1
-1
ChartWidget.tsx
ui/shared/chart/ChartWidget.tsx
+1
-1
TokenProjectInfo.tsx
ui/token/TokenProjectInfo.tsx
+2
-2
TriggerButton.tsx
ui/token/TokenProjectInfo/TriggerButton.tsx
+1
-3
TokenVerifiedInfo.tsx
ui/token/TokenVerifiedInfo.tsx
+1
-1
No files found.
icons/dots.svg
0 → 100644
View file @
7b2872c8
<svg
viewBox=
"0 0 20 4"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<circle
cx=
"2"
cy=
"2"
r=
"2"
fill=
"currentColor"
/>
<circle
cx=
"10"
cy=
"2"
r=
"2"
fill=
"currentColor"
/>
<circle
cx=
"18"
cy=
"2"
r=
"2"
fill=
"currentColor"
/>
</svg>
icons/vertical_dots.svg
deleted
100644 → 0
View file @
652620a7
<svg
viewBox=
"2 2 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M11.667 3.75c0-.688-.563-1.25-1.25-1.25-.688 0-1.25.563-1.25 1.25 0 .688.562 1.25 1.25 1.25.687 0 1.25-.563 1.25-1.25Zm0 12.5c0-.688-.563-1.25-1.25-1.25-.688 0-1.25.563-1.25 1.25 0 .688.562 1.25 1.25 1.25.687 0 1.25-.563 1.25-1.25Zm0-6.25c0-.688-.563-1.25-1.25-1.25-.688 0-1.25.563-1.25 1.25 0 .688.562 1.25 1.25 1.25.687 0 1.25-.563 1.25-1.25Z"
fill=
"currentColor"
fill-opacity=
".8"
/>
</svg>
public/icons/name.d.ts
View file @
7b2872c8
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
|
"
discussions
"
|
"
discussions
"
|
"
docs
"
|
"
docs
"
|
"
donate
"
|
"
donate
"
|
"
dots
"
|
"
edit
"
|
"
edit
"
|
"
email-sent
"
|
"
email-sent
"
|
"
email
"
|
"
email
"
...
@@ -126,7 +127,6 @@
...
@@ -126,7 +127,6 @@
|
"
verified_token
"
|
"
verified_token
"
|
"
verified
"
|
"
verified
"
|
"
verify-contract
"
|
"
verify-contract
"
|
"
vertical_dots
"
|
"
wallet
"
|
"
wallet
"
|
"
wallets/coinbase
"
|
"
wallets/coinbase
"
|
"
wallets/metamask
"
|
"
wallets/metamask
"
...
...
ui/address/SolidityscanReport.tsx
View file @
7b2872c8
...
@@ -112,7 +112,7 @@ const SolidityscanReport = ({ className, hash }: Props) => {
...
@@ -112,7 +112,7 @@ const SolidityscanReport = ({ className, hash }: Props) => {
return
(
return
(
<
Popover
isOpen=
{
isOpen
}
onClose=
{
onClose
}
placement=
"bottom-start"
isLazy
>
<
Popover
isOpen=
{
isOpen
}
onClose=
{
onClose
}
placement=
"bottom-start"
isLazy
>
<
PopoverTrigger
>
<
PopoverTrigger
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
borderRadius=
"base"
>
<
Button
<
Button
className=
{
className
}
className=
{
className
}
color=
{
scoreColor
}
color=
{
scoreColor
}
...
@@ -122,7 +122,7 @@ const SolidityscanReport = ({ className, hash }: Props) => {
...
@@ -122,7 +122,7 @@ const SolidityscanReport = ({ className, hash }: Props) => {
onClick=
{
onToggle
}
onClick=
{
onToggle
}
aria
-
label=
"SolidityScan score"
aria
-
label=
"SolidityScan score"
fontWeight=
{
500
}
fontWeight=
{
500
}
px=
{
2
}
px=
"6px"
h=
"32px"
h=
"32px"
flexShrink=
{
0
}
flexShrink=
{
0
}
>
>
...
...
ui/address/ensDomains/AddressEnsDomains.tsx
View file @
7b2872c8
import
{
Button
,
chakra
,
Flex
,
Grid
,
Popover
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Skeleton
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Button
,
chakra
,
Flex
,
Grid
,
Hide
,
Popover
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Show
,
Skeleton
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
_clamp
from
'
lodash/clamp
'
;
import
_clamp
from
'
lodash/clamp
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -50,7 +50,7 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
...
@@ -50,7 +50,7 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
}
}
if
(
isPending
)
{
if
(
isPending
)
{
return
<
Skeleton
h=
{
8
}
w=
{
{
base
:
'
60px
'
,
lg
:
'
120px
'
}
}
borderRadius=
"base"
/>;
return
<
Skeleton
h=
{
8
}
w=
{
{
base
:
'
50px
'
,
xl
:
'
120px
'
}
}
borderRadius=
"base"
/>;
}
}
if
(
data
.
items
.
length
===
0
)
{
if
(
data
.
items
.
length
===
0
)
{
...
@@ -102,8 +102,12 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
...
@@ -102,8 +102,12 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
flexShrink=
{
0
}
flexShrink=
{
0
}
>
>
<
IconSvg
name=
"ENS_slim"
boxSize=
{
5
}
/>
<
IconSvg
name=
"ENS_slim"
boxSize=
{
5
}
/>
<
chakra
.
span
ml=
{
1
}
display=
{
{
base
:
'
none
'
,
lg
:
'
block
'
}
}
>
{
totalRecords
}
Domain
{
data
.
items
.
length
>
1
?
'
s
'
:
''
}
</
chakra
.
span
>
<
Show
above=
"xl"
>
<
IconSvg
name=
"arrows/east-mini"
transform=
{
isOpen
?
'
rotate(90deg)
'
:
'
rotate(-90deg)
'
}
transitionDuration=
"faster"
boxSize=
{
5
}
/>
<
chakra
.
span
ml=
{
1
}
>
{
totalRecords
}
Domain
{
data
.
items
.
length
>
1
?
'
s
'
:
''
}
</
chakra
.
span
>
</
Show
>
<
Hide
above=
"xl"
>
<
chakra
.
span
ml=
{
1
}
>
{
totalRecords
}
</
chakra
.
span
>
</
Hide
>
</
Button
>
</
Button
>
</
PopoverTrigger
>
</
PopoverTrigger
>
<
PopoverContent
w=
{
{
base
:
'
100vw
'
,
lg
:
'
500px
'
}
}
>
<
PopoverContent
w=
{
{
base
:
'
100vw
'
,
lg
:
'
500px
'
}
}
>
...
...
ui/shared/AccountActionsMenu/AccountActionsMenu.tsx
View file @
7b2872c8
import
{
Button
,
Menu
,
MenuButton
,
MenuList
,
Flex
,
Skeleton
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
IconButton
,
Menu
,
MenuButton
,
MenuList
,
Skeleton
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -37,16 +37,14 @@ const AccountActionsMenu = ({ isLoading, className }: Props) => {
...
@@ -37,16 +37,14 @@ const AccountActionsMenu = ({ isLoading, className }: Props) => {
<
Menu
>
<
Menu
>
<
Skeleton
isLoaded=
{
!
isLoading
}
borderRadius=
"base"
className=
{
className
}
>
<
Skeleton
isLoaded=
{
!
isLoading
}
borderRadius=
"base"
className=
{
className
}
>
<
MenuButton
<
MenuButton
as=
{
Button
}
as=
{
Icon
Button
}
size=
"sm"
size=
"sm"
variant=
"outline"
variant=
"outline"
colorScheme=
"gray"
px=
"6px"
onClick=
{
handleButtonClick
}
onClick=
{
handleButtonClick
}
>
icon=
{
<
IconSvg
name=
"dots"
boxSize=
{
5
}
/>
}
<
Flex
alignItems=
"center"
>
/>
<
span
>
More
</
span
>
<
IconSvg
name=
"arrows/east-mini"
transform=
"rotate(-90deg)"
boxSize=
{
5
}
ml=
{
1
}
/>
</
Flex
>
</
MenuButton
>
</
Skeleton
>
</
Skeleton
>
<
MenuList
minWidth=
"180px"
zIndex=
"popover"
>
<
MenuList
minWidth=
"180px"
zIndex=
"popover"
>
{
isTokenPage
&&
config
.
features
.
addressVerification
.
isEnabled
&&
{
isTokenPage
&&
config
.
features
.
addressVerification
.
isEnabled
&&
...
...
ui/shared/NetworkExplorers.tsx
View file @
7b2872c8
import
{
Flex
,
Button
,
chakra
,
Popover
,
PopoverTrigger
,
PopoverBody
,
PopoverContent
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Button
,
chakra
,
Popover
,
PopoverTrigger
,
PopoverBody
,
PopoverContent
,
useDisclosure
,
Show
,
Hide
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
NetworkExplorer
as
TNetworkExplorer
}
from
'
types/networks
'
;
import
type
{
NetworkExplorer
as
TNetworkExplorer
}
from
'
types/networks
'
;
...
@@ -46,7 +46,12 @@ const NetworkExplorers = ({ className, type, pathParam }: Props) => {
...
@@ -46,7 +46,12 @@ const NetworkExplorers = ({ className, type, pathParam }: Props) => {
flexShrink=
{
0
}
flexShrink=
{
0
}
>
>
<
IconSvg
name=
"explorer"
boxSize=
{
5
}
/>
<
IconSvg
name=
"explorer"
boxSize=
{
5
}
/>
<
IconSvg
name=
"arrows/east-mini"
transform=
{
isOpen
?
'
rotate(90deg)
'
:
'
rotate(-90deg)
'
}
transitionDuration=
"faster"
boxSize=
{
5
}
/>
<
Show
above=
"xl"
>
<
chakra
.
span
ml=
{
1
}
>
{
explorersLinks
.
length
}
Explorer
{
explorersLinks
.
length
>
1
?
'
s
'
:
''
}
</
chakra
.
span
>
</
Show
>
<
Hide
above=
"xl"
>
<
chakra
.
span
ml=
{
1
}
>
{
explorersLinks
.
length
}
</
chakra
.
span
>
</
Hide
>
</
Button
>
</
Button
>
</
PopoverTrigger
>
</
PopoverTrigger
>
<
PopoverContent
w=
"240px"
>
<
PopoverContent
w=
"240px"
>
...
...
ui/shared/address/AddressAddToWallet.tsx
View file @
7b2872c8
...
@@ -96,7 +96,7 @@ const AddressAddToWallet = ({ className, token, isLoading, variant = 'icon', ico
...
@@ -96,7 +96,7 @@ const AddressAddToWallet = ({ className, token, isLoading, variant = 'icon', ico
aria
-
label=
"Add token to wallet"
aria
-
label=
"Add token to wallet"
variant=
"outline"
variant=
"outline"
size=
"sm"
size=
"sm"
px=
"6px"
px=
{
1
}
onClick=
{
handleClick
}
onClick=
{
handleClick
}
icon=
{
<
IconSvg
name=
{
WALLETS_INFO
[
wallet
].
icon
}
boxSize=
{
6
}
/>
}
icon=
{
<
IconSvg
name=
{
WALLETS_INFO
[
wallet
].
icon
}
boxSize=
{
6
}
/>
}
flexShrink=
{
0
}
flexShrink=
{
0
}
...
...
ui/shared/chart/ChartWidget.tsx
View file @
7b2872c8
...
@@ -207,7 +207,7 @@ const ChartWidget = ({ items, title, description, isLoading, className, isError,
...
@@ -207,7 +207,7 @@ const ChartWidget = ({ items, title, description, isLoading, className, isError,
<
MenuButton
<
MenuButton
w=
"36px"
w=
"36px"
h=
"32px"
h=
"32px"
icon=
{
<
IconSvg
name=
"
vertical_dots"
w=
{
4
}
h=
{
4
}
/>
}
icon=
{
<
IconSvg
name=
"
dots"
boxSize=
{
4
}
transform=
"rotate(-90deg)"
/>
}
colorScheme=
"gray"
colorScheme=
"gray"
variant=
"ghost"
variant=
"ghost"
as=
{
IconButton
}
as=
{
IconButton
}
...
...
ui/token/TokenProjectInfo.tsx
View file @
7b2872c8
...
@@ -27,7 +27,7 @@ const TokenProjectInfo = ({ data }: Props) => {
...
@@ -27,7 +27,7 @@ const TokenProjectInfo = ({ data }: Props) => {
if
(
isMobile
)
{
if
(
isMobile
)
{
return
(
return
(
<>
<>
<
TriggerButton
isOpen=
{
isOpen
}
onClick=
{
onToggle
}
/>
<
TriggerButton
onClick=
{
onToggle
}
/>
<
Modal
isOpen=
{
isOpen
}
onClose=
{
onClose
}
size=
"full"
>
<
Modal
isOpen=
{
isOpen
}
onClose=
{
onClose
}
size=
"full"
>
<
ModalContent
>
<
ModalContent
>
<
ModalCloseButton
/>
<
ModalCloseButton
/>
...
@@ -41,7 +41,7 @@ const TokenProjectInfo = ({ data }: Props) => {
...
@@ -41,7 +41,7 @@ const TokenProjectInfo = ({ data }: Props) => {
return
(
return
(
<
Popover
isOpen=
{
isOpen
}
onClose=
{
onClose
}
placement=
"bottom-start"
isLazy
>
<
Popover
isOpen=
{
isOpen
}
onClose=
{
onClose
}
placement=
"bottom-start"
isLazy
>
<
PopoverTrigger
>
<
PopoverTrigger
>
<
TriggerButton
isOpen=
{
isOpen
}
onClick=
{
onToggle
}
/>
<
TriggerButton
onClick=
{
onToggle
}
/>
</
PopoverTrigger
>
</
PopoverTrigger
>
<
PopoverContent
w=
"500px"
>
<
PopoverContent
w=
"500px"
>
<
PopoverBody
px=
{
6
}
py=
{
5
}
>
<
PopoverBody
px=
{
6
}
py=
{
5
}
>
...
...
ui/token/TokenProjectInfo/TriggerButton.tsx
View file @
7b2872c8
...
@@ -5,10 +5,9 @@ import IconSvg from 'ui/shared/IconSvg';
...
@@ -5,10 +5,9 @@ import IconSvg from 'ui/shared/IconSvg';
interface
Props
{
interface
Props
{
onClick
:
()
=>
void
;
onClick
:
()
=>
void
;
isOpen
:
boolean
;
}
}
const
TriggerButton
=
({
isOpen
,
onClick
}:
Props
,
ref
:
React
.
ForwardedRef
<
HTMLButtonElement
>
)
=>
{
const
TriggerButton
=
({
onClick
}:
Props
,
ref
:
React
.
ForwardedRef
<
HTMLButtonElement
>
)
=>
{
return
(
return
(
<
Button
<
Button
ref=
{
ref
}
ref=
{
ref
}
...
@@ -23,7 +22,6 @@ const TriggerButton = ({ isOpen, onClick }: Props, ref: React.ForwardedRef<HTMLB
...
@@ -23,7 +22,6 @@ const TriggerButton = ({ isOpen, onClick }: Props, ref: React.ForwardedRef<HTMLB
>
>
<
IconSvg
name=
"rocket"
boxSize=
{
5
}
mr=
{
1
}
/>
<
IconSvg
name=
"rocket"
boxSize=
{
5
}
mr=
{
1
}
/>
<
span
>
Info
</
span
>
<
span
>
Info
</
span
>
<
IconSvg
name=
"arrows/east-mini"
transform=
{
isOpen
?
'
rotate(90deg)
'
:
'
rotate(-90deg)
'
}
transitionDuration=
"faster"
boxSize=
{
5
}
ml=
{
1
}
/>
</
Button
>
</
Button
>
);
);
};
};
...
...
ui/token/TokenVerifiedInfo.tsx
View file @
7b2872c8
...
@@ -28,7 +28,7 @@ const TokenVerifiedInfo = ({ verifiedInfoQuery }: Props) => {
...
@@ -28,7 +28,7 @@ const TokenVerifiedInfo = ({ verifiedInfoQuery }: Props) => {
<>
<>
<
Skeleton
w=
"100px"
h=
"30px"
borderRadius=
"base"
/>
<
Skeleton
w=
"100px"
h=
"30px"
borderRadius=
"base"
/>
<
Skeleton
w=
"100px"
h=
"30px"
borderRadius=
"base"
/>
<
Skeleton
w=
"100px"
h=
"30px"
borderRadius=
"base"
/>
<
Skeleton
w=
"
8
0px"
h=
"30px"
borderRadius=
"base"
/>
<
Skeleton
w=
"
7
0px"
h=
"30px"
borderRadius=
"base"
/>
</>
</>
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment