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
de941ba0
Unverified
Commit
de941ba0
authored
Aug 14, 2024
by
Igor Stuev
Committed by
GitHub
Aug 14, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2162 from blockscout/reload-the-page
add article
parents
d6e06153
4824ac1d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
13 deletions
+13
-13
useNewTxsSocket.tsx
lib/hooks/useNewTxsSocket.tsx
+2
-2
LatestBlocks.tsx
ui/home/LatestBlocks.tsx
+1
-1
LatestTxs.tsx
ui/home/LatestTxs.tsx
+1
-1
LatestWatchlistTxs.tsx
ui/home/LatestWatchlistTxs.tsx
+1
-1
LatestArbitrumL2Batches.tsx
ui/home/latestBatches/LatestArbitrumL2Batches.tsx
+1
-1
LatestZkEvmL2Batches.tsx
ui/home/latestBatches/LatestZkEvmL2Batches.tsx
+1
-1
LatestArbitrumDeposits.tsx
ui/home/latestDeposits/LatestArbitrumDeposits.tsx
+3
-3
LatestOptimisticDeposits.tsx
ui/home/latestDeposits/LatestOptimisticDeposits.tsx
+3
-3
No files found.
lib/hooks/useNewTxsSocket.tsx
View file @
de941ba0
...
...
@@ -57,11 +57,11 @@ export default function useNewTxsSocket() {
},
[
setNum
]);
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
Connection is lost. Please reload page.
'
);
setSocketAlert
(
'
Connection is lost. Please reload
the
page.
'
);
},
[]);
const
handleSocketError
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
An error has occurred while fetching new transactions. Please reload page.
'
);
setSocketAlert
(
'
An error has occurred while fetching new transactions. Please reload
the
page.
'
);
},
[]);
const
channel
=
useSocketChannel
({
...
...
ui/home/LatestBlocks.tsx
View file @
de941ba0
...
...
@@ -69,7 +69,7 @@ const LatestBlocks = () => {
let
content
;
if
(
isError
)
{
content
=
<
Text
>
No data. Please reload page.
</
Text
>;
content
=
<
Text
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
data
)
{
...
...
ui/home/LatestTxs.tsx
View file @
de941ba0
...
...
@@ -26,7 +26,7 @@ const LatestTransactions = () => {
const
{
num
,
socketAlert
}
=
useNewTxsSocket
();
if
(
isError
)
{
return
<
Text
mt=
{
4
}
>
No data. Please reload page.
</
Text
>;
return
<
Text
mt=
{
4
}
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
data
)
{
...
...
ui/home/LatestWatchlistTxs.tsx
View file @
de941ba0
...
...
@@ -23,7 +23,7 @@ const LatestWatchlistTxs = () => {
});
if
(
isError
)
{
return
<
Text
mt=
{
4
}
>
No data. Please reload page.
</
Text
>;
return
<
Text
mt=
{
4
}
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
!
data
?.
length
)
{
...
...
ui/home/latestBatches/LatestArbitrumL2Batches.tsx
View file @
de941ba0
...
...
@@ -53,7 +53,7 @@ const LatestArbitrumL2Batches = () => {
let
content
;
if
(
isError
)
{
content
=
<
Text
>
No data. Please reload page.
</
Text
>;
content
=
<
Text
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
data
)
{
...
...
ui/home/latestBatches/LatestZkEvmL2Batches.tsx
View file @
de941ba0
...
...
@@ -54,7 +54,7 @@ const LatestZkEvmL2Batches = () => {
let
content
;
if
(
isError
)
{
content
=
<
Text
>
No data. Please reload page.
</
Text
>;
content
=
<
Text
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
data
)
{
...
...
ui/home/latestDeposits/LatestArbitrumDeposits.tsx
View file @
de941ba0
...
...
@@ -25,11 +25,11 @@ const LatestArbitrumDeposits = () => {
const
[
socketAlert
,
setSocketAlert
]
=
React
.
useState
(
''
);
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
Connection is lost. Please reload page.
'
);
setSocketAlert
(
'
Connection is lost. Please reload
the
page.
'
);
},
[]);
const
handleSocketError
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
An error has occurred while fetching new transactions. Please reload page.
'
);
setSocketAlert
(
'
An error has occurred while fetching new transactions. Please reload
the
page.
'
);
},
[]);
const
handleNewDepositMessage
:
SocketMessage
.
NewArbitrumDeposits
[
'
handler
'
]
=
React
.
useCallback
((
payload
)
=>
{
...
...
@@ -50,7 +50,7 @@ const LatestArbitrumDeposits = () => {
});
if
(
isError
)
{
return
<
Text
mt=
{
4
}
>
No data. Please reload page.
</
Text
>;
return
<
Text
mt=
{
4
}
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
data
)
{
...
...
ui/home/latestDeposits/LatestOptimisticDeposits.tsx
View file @
de941ba0
...
...
@@ -25,11 +25,11 @@ const LatestOptimisticDeposits = () => {
const
[
socketAlert
,
setSocketAlert
]
=
React
.
useState
(
''
);
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
Connection is lost. Please reload page.
'
);
setSocketAlert
(
'
Connection is lost. Please reload
the
page.
'
);
},
[]);
const
handleSocketError
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
An error has occurred while fetching new transactions. Please reload page.
'
);
setSocketAlert
(
'
An error has occurred while fetching new transactions. Please reload
the
page.
'
);
},
[]);
const
handleNewDepositMessage
:
SocketMessage
.
NewOptimisticDeposits
[
'
handler
'
]
=
React
.
useCallback
((
payload
)
=>
{
...
...
@@ -50,7 +50,7 @@ const LatestOptimisticDeposits = () => {
});
if
(
isError
)
{
return
<
Text
mt=
{
4
}
>
No data. Please reload page.
</
Text
>;
return
<
Text
mt=
{
4
}
>
No data. Please reload
the
page.
</
Text
>;
}
if
(
data
)
{
...
...
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