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
4d01d206
Commit
4d01d206
authored
May 01, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix link in new item socket alert
parent
5bf614fc
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
6 additions
and
16 deletions
+6
-16
AddressBlocksValidated.tsx
ui/address/AddressBlocksValidated.tsx
+0
-2
AddressTokenTransfers.tsx
ui/address/AddressTokenTransfers.tsx
+0
-1
BlocksContent.tsx
ui/blocks/BlocksContent.tsx
+0
-1
BlocksTable.tsx
ui/blocks/BlocksTable.tsx
+0
-1
SocketNewItemsNotice.tsx
ui/shared/SocketNewItemsNotice.tsx
+6
-2
TokenTransferTable.tsx
ui/shared/TokenTransfer/TokenTransferTable.tsx
+0
-1
Alert.tsx
ui/showcases/Alert.tsx
+0
-2
TokenTransfer.tsx
ui/token/TokenTransfer/TokenTransfer.tsx
+0
-1
TokenTransferTable.tsx
ui/token/TokenTransfer/TokenTransferTable.tsx
+0
-1
TxsSocketNoticeTypeAddress.tsx
ui/txs/socket/TxsSocketNoticeTypeAddress.tsx
+0
-2
TxsSocketNoticeTypeAll.tsx
ui/txs/socket/TxsSocketNoticeTypeAll.tsx
+0
-2
No files found.
ui/address/AddressBlocksValidated.tsx
View file @
4d01d206
...
@@ -116,7 +116,6 @@ const AddressBlocksValidated = ({ shouldRender = true, isQueryEnabled = true }:
...
@@ -116,7 +116,6 @@ const AddressBlocksValidated = ({ shouldRender = true, isQueryEnabled = true }:
</
TableHeaderSticky
>
</
TableHeaderSticky
>
<
TableBody
>
<
TableBody
>
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
num=
{
newItemsCount
}
num=
{
newItemsCount
}
alert=
{
socketAlert
}
alert=
{
socketAlert
}
type=
"block"
type=
"block"
...
@@ -136,7 +135,6 @@ const AddressBlocksValidated = ({ shouldRender = true, isQueryEnabled = true }:
...
@@ -136,7 +135,6 @@ const AddressBlocksValidated = ({ shouldRender = true, isQueryEnabled = true }:
<
Box
hideFrom=
"lg"
>
<
Box
hideFrom=
"lg"
>
{
query
.
pagination
.
page
===
1
&&
(
{
query
.
pagination
.
page
===
1
&&
(
<
SocketNewItemsNotice
.
Mobile
<
SocketNewItemsNotice
.
Mobile
url=
{
window
.
location
.
href
}
num=
{
newItemsCount
}
num=
{
newItemsCount
}
alert=
{
socketAlert
}
alert=
{
socketAlert
}
type=
"block"
type=
"block"
...
...
ui/address/AddressTokenTransfers.tsx
View file @
4d01d206
...
@@ -197,7 +197,6 @@ const AddressTokenTransfers = ({ overloadCount = OVERLOAD_COUNT, shouldRender =
...
@@ -197,7 +197,6 @@ const AddressTokenTransfers = ({ overloadCount = OVERLOAD_COUNT, shouldRender =
<
Box
hideFrom=
"lg"
>
<
Box
hideFrom=
"lg"
>
{
pagination
.
page
===
1
&&
(
{
pagination
.
page
===
1
&&
(
<
SocketNewItemsNotice
.
Mobile
<
SocketNewItemsNotice
.
Mobile
url=
{
window
.
location
.
href
}
num=
{
newItemsCount
}
num=
{
newItemsCount
}
alert=
{
socketAlert
}
alert=
{
socketAlert
}
type=
"token_transfer"
type=
"token_transfer"
...
...
ui/blocks/BlocksContent.tsx
View file @
4d01d206
...
@@ -90,7 +90,6 @@ const BlocksContent = ({ type, query, enableSocket = true, top }: Props) => {
...
@@ -90,7 +90,6 @@ const BlocksContent = ({ type, query, enableSocket = true, top }: Props) => {
<
Box
hideFrom=
"lg"
>
<
Box
hideFrom=
"lg"
>
{
query
.
pagination
.
page
===
1
&&
enableSocket
&&
(
{
query
.
pagination
.
page
===
1
&&
enableSocket
&&
(
<
SocketNewItemsNotice
.
Mobile
<
SocketNewItemsNotice
.
Mobile
url=
{
window
.
location
.
href
}
num=
{
newItemsCount
}
num=
{
newItemsCount
}
alert=
{
socketAlert
}
alert=
{
socketAlert
}
type=
"block"
type=
"block"
...
...
ui/blocks/BlocksTable.tsx
View file @
4d01d206
...
@@ -67,7 +67,6 @@ const BlocksTable = ({ data, isLoading, top, page, showSocketInfo, socketInfoNum
...
@@ -67,7 +67,6 @@ const BlocksTable = ({ data, isLoading, top, page, showSocketInfo, socketInfoNum
<
TableBody
>
<
TableBody
>
{
showSocketInfo
&&
(
{
showSocketInfo
&&
(
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
alert=
{
socketInfoAlert
}
alert=
{
socketInfoAlert
}
num=
{
socketInfoNum
}
num=
{
socketInfoNum
}
type=
"block"
type=
"block"
...
...
ui/shared/SocketNewItemsNotice.tsx
View file @
4d01d206
...
@@ -14,13 +14,17 @@ interface Props {
...
@@ -14,13 +14,17 @@ interface Props {
type
?:
'
transaction
'
|
'
token_transfer
'
|
'
deposit
'
|
'
block
'
;
type
?:
'
transaction
'
|
'
token_transfer
'
|
'
deposit
'
|
'
block
'
;
children
?:
(
props
:
InjectedProps
)
=>
React
.
JSX
.
Element
;
children
?:
(
props
:
InjectedProps
)
=>
React
.
JSX
.
Element
;
className
?:
string
;
className
?:
string
;
url
:
string
;
url
?
:
string
;
alert
?:
string
;
alert
?:
string
;
num
?:
number
;
num
?:
number
;
isLoading
?:
boolean
;
isLoading
?:
boolean
;
}
}
const
SocketNewItemsNotice
=
chakra
(({
children
,
className
,
url
,
num
,
alert
,
type
=
'
transaction
'
,
isLoading
}:
Props
)
=>
{
const
SocketNewItemsNotice
=
chakra
(({
children
,
className
,
url
,
num
,
alert
,
type
=
'
transaction
'
,
isLoading
}:
Props
)
=>
{
const
handleLinkClick
=
React
.
useCallback
(()
=>
{
window
.
location
.
reload
();
},
[]);
const
alertContent
=
(()
=>
{
const
alertContent
=
(()
=>
{
if
(
alert
)
{
if
(
alert
)
{
return
alert
;
return
alert
;
...
@@ -49,7 +53,7 @@ const SocketNewItemsNotice = chakra(({ children, className, url, num, alert, typ
...
@@ -49,7 +53,7 @@ const SocketNewItemsNotice = chakra(({ children, className, url, num, alert, typ
return
(
return
(
<>
<>
<
Link
href=
{
url
}
>
{
num
.
toLocaleString
()
}
more
{
name
}{
num
>
1
?
'
s
'
:
''
}
</
Link
>
<
Link
href=
{
url
}
onClick=
{
!
url
?
handleLinkClick
:
undefined
}
>
{
num
.
toLocaleString
()
}
more
{
name
}{
num
>
1
?
'
s
'
:
''
}
</
Link
>
<
Text
whiteSpace=
"pre"
>
ha
{
num
>
1
?
'
ve
'
:
'
s
'
}
come in
</
Text
>
<
Text
whiteSpace=
"pre"
>
ha
{
num
>
1
?
'
ve
'
:
'
s
'
}
come in
</
Text
>
</>
</>
);
);
...
...
ui/shared/TokenTransfer/TokenTransferTable.tsx
View file @
4d01d206
...
@@ -47,7 +47,6 @@ const TokenTransferTable = ({
...
@@ -47,7 +47,6 @@ const TokenTransferTable = ({
<
TableBody
>
<
TableBody
>
{
showSocketInfo
&&
(
{
showSocketInfo
&&
(
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
alert=
{
socketInfoAlert
}
alert=
{
socketInfoAlert
}
num=
{
socketInfoNum
}
num=
{
socketInfoNum
}
type=
"token_transfer"
type=
"token_transfer"
...
...
ui/showcases/Alert.tsx
View file @
4d01d206
...
@@ -76,7 +76,6 @@ const AlertShowcase = () => {
...
@@ -76,7 +76,6 @@ const AlertShowcase = () => {
</
TableHeader
>
</
TableHeader
>
<
TableBody
>
<
TableBody
>
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
num=
{
1234
}
num=
{
1234
}
type=
"block"
type=
"block"
isLoading
isLoading
...
@@ -95,7 +94,6 @@ const AlertShowcase = () => {
...
@@ -95,7 +94,6 @@ const AlertShowcase = () => {
</
TableHeader
>
</
TableHeader
>
<
TableBody
>
<
TableBody
>
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
num=
{
1234
}
num=
{
1234
}
type=
"block"
type=
"block"
isLoading=
{
false
}
isLoading=
{
false
}
...
...
ui/token/TokenTransfer/TokenTransfer.tsx
View file @
4d01d206
...
@@ -89,7 +89,6 @@ const TokenTransfer = ({ transfersQuery, tokenId, tokenQuery, tabsHeight = TABS_
...
@@ -89,7 +89,6 @@ const TokenTransfer = ({ transfersQuery, tokenId, tokenQuery, tabsHeight = TABS_
<Box display={{ base: 'block', lg: 'none' }}>
<Box display={{ base: 'block', lg: 'none' }}>
{ pagination.page === 1 && (
{ pagination.page === 1 && (
<SocketNewItemsNotice.Mobile
<SocketNewItemsNotice.Mobile
url={ window.location.href }
num={ newItemsCount }
num={ newItemsCount }
alert={ socketAlert }
alert={ socketAlert }
type="token_transfer"
type="token_transfer"
...
...
ui/token/TokenTransfer/TokenTransferTable.tsx
View file @
4d01d206
...
@@ -47,7 +47,6 @@ const TokenTransferTable = ({ data, top, showSocketInfo, socketInfoAlert, socket
...
@@ -47,7 +47,6 @@ const TokenTransferTable = ({ data, top, showSocketInfo, socketInfoAlert, socket
<
TableBody
>
<
TableBody
>
{
showSocketInfo
&&
(
{
showSocketInfo
&&
(
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
alert=
{
socketInfoAlert
}
alert=
{
socketInfoAlert
}
num=
{
socketInfoNum
}
num=
{
socketInfoNum
}
type=
"token_transfer"
type=
"token_transfer"
...
...
ui/txs/socket/TxsSocketNoticeTypeAddress.tsx
View file @
4d01d206
...
@@ -21,7 +21,6 @@ const TxsSocketNoticeTypeAddress = ({ place, isLoading }: Props) => {
...
@@ -21,7 +21,6 @@ const TxsSocketNoticeTypeAddress = ({ place, isLoading }: Props) => {
if
(
place
===
'
table
'
)
{
if
(
place
===
'
table
'
)
{
return
(
return
(
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
alert=
{
alertText
}
alert=
{
alertText
}
num=
{
num
}
num=
{
num
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
...
@@ -32,7 +31,6 @@ const TxsSocketNoticeTypeAddress = ({ place, isLoading }: Props) => {
...
@@ -32,7 +31,6 @@ const TxsSocketNoticeTypeAddress = ({ place, isLoading }: Props) => {
if
(
place
===
'
list
'
)
{
if
(
place
===
'
list
'
)
{
return
(
return
(
<
SocketNewItemsNotice
.
Mobile
<
SocketNewItemsNotice
.
Mobile
url=
{
window
.
location
.
href
}
num=
{
num
}
num=
{
num
}
alert=
{
alertText
}
alert=
{
alertText
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
...
...
ui/txs/socket/TxsSocketNoticeTypeAll.tsx
View file @
4d01d206
...
@@ -22,7 +22,6 @@ const TxsSocketNoticeTypeAll = ({ type, place, isLoading }: Props) => {
...
@@ -22,7 +22,6 @@ const TxsSocketNoticeTypeAll = ({ type, place, isLoading }: Props) => {
if
(
place
===
'
table
'
)
{
if
(
place
===
'
table
'
)
{
return
(
return
(
<
SocketNewItemsNotice
.
Desktop
<
SocketNewItemsNotice
.
Desktop
url=
{
window
.
location
.
href
}
alert=
{
alertText
}
alert=
{
alertText
}
num=
{
num
}
num=
{
num
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
...
@@ -33,7 +32,6 @@ const TxsSocketNoticeTypeAll = ({ type, place, isLoading }: Props) => {
...
@@ -33,7 +32,6 @@ const TxsSocketNoticeTypeAll = ({ type, place, isLoading }: Props) => {
if
(
place
===
'
list
'
)
{
if
(
place
===
'
list
'
)
{
return
(
return
(
<
SocketNewItemsNotice
.
Mobile
<
SocketNewItemsNotice
.
Mobile
url=
{
window
.
location
.
href
}
num=
{
num
}
num=
{
num
}
alert=
{
alertText
}
alert=
{
alertText
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
...
...
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