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
4824ac1d
Commit
4824ac1d
authored
Aug 13, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add article
parent
df2f9d95
Changes
8
Hide 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 @
4824ac1d
...
@@ -57,11 +57,11 @@ export default function useNewTxsSocket() {
...
@@ -57,11 +57,11 @@ export default function useNewTxsSocket() {
},
[
setNum
]);
},
[
setNum
]);
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
Connection is lost. Please reload page.
'
);
setSocketAlert
(
'
Connection is lost. Please reload
the
page.
'
);
},
[]);
},
[]);
const
handleSocketError
=
React
.
useCallback
(()
=>
{
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
({
const
channel
=
useSocketChannel
({
...
...
ui/home/LatestBlocks.tsx
View file @
4824ac1d
...
@@ -69,7 +69,7 @@ const LatestBlocks = () => {
...
@@ -69,7 +69,7 @@ const LatestBlocks = () => {
let
content
;
let
content
;
if
(
isError
)
{
if
(
isError
)
{
content
=
<
Text
>
No data. Please reload page.
</
Text
>;
content
=
<
Text
>
No data. Please reload
the
page.
</
Text
>;
}
}
if
(
data
)
{
if
(
data
)
{
...
...
ui/home/LatestTxs.tsx
View file @
4824ac1d
...
@@ -26,7 +26,7 @@ const LatestTransactions = () => {
...
@@ -26,7 +26,7 @@ const LatestTransactions = () => {
const
{
num
,
socketAlert
}
=
useNewTxsSocket
();
const
{
num
,
socketAlert
}
=
useNewTxsSocket
();
if
(
isError
)
{
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
)
{
if
(
data
)
{
...
...
ui/home/LatestWatchlistTxs.tsx
View file @
4824ac1d
...
@@ -23,7 +23,7 @@ const LatestWatchlistTxs = () => {
...
@@ -23,7 +23,7 @@ const LatestWatchlistTxs = () => {
});
});
if
(
isError
)
{
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
)
{
if
(
!
data
?.
length
)
{
...
...
ui/home/latestBatches/LatestArbitrumL2Batches.tsx
View file @
4824ac1d
...
@@ -53,7 +53,7 @@ const LatestArbitrumL2Batches = () => {
...
@@ -53,7 +53,7 @@ const LatestArbitrumL2Batches = () => {
let
content
;
let
content
;
if
(
isError
)
{
if
(
isError
)
{
content
=
<
Text
>
No data. Please reload page.
</
Text
>;
content
=
<
Text
>
No data. Please reload
the
page.
</
Text
>;
}
}
if
(
data
)
{
if
(
data
)
{
...
...
ui/home/latestBatches/LatestZkEvmL2Batches.tsx
View file @
4824ac1d
...
@@ -54,7 +54,7 @@ const LatestZkEvmL2Batches = () => {
...
@@ -54,7 +54,7 @@ const LatestZkEvmL2Batches = () => {
let
content
;
let
content
;
if
(
isError
)
{
if
(
isError
)
{
content
=
<
Text
>
No data. Please reload page.
</
Text
>;
content
=
<
Text
>
No data. Please reload
the
page.
</
Text
>;
}
}
if
(
data
)
{
if
(
data
)
{
...
...
ui/home/latestDeposits/LatestArbitrumDeposits.tsx
View file @
4824ac1d
...
@@ -25,11 +25,11 @@ const LatestArbitrumDeposits = () => {
...
@@ -25,11 +25,11 @@ const LatestArbitrumDeposits = () => {
const
[
socketAlert
,
setSocketAlert
]
=
React
.
useState
(
''
);
const
[
socketAlert
,
setSocketAlert
]
=
React
.
useState
(
''
);
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
Connection is lost. Please reload page.
'
);
setSocketAlert
(
'
Connection is lost. Please reload
the
page.
'
);
},
[]);
},
[]);
const
handleSocketError
=
React
.
useCallback
(()
=>
{
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
)
=>
{
const
handleNewDepositMessage
:
SocketMessage
.
NewArbitrumDeposits
[
'
handler
'
]
=
React
.
useCallback
((
payload
)
=>
{
...
@@ -50,7 +50,7 @@ const LatestArbitrumDeposits = () => {
...
@@ -50,7 +50,7 @@ const LatestArbitrumDeposits = () => {
});
});
if
(
isError
)
{
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
)
{
if
(
data
)
{
...
...
ui/home/latestDeposits/LatestOptimisticDeposits.tsx
View file @
4824ac1d
...
@@ -25,11 +25,11 @@ const LatestOptimisticDeposits = () => {
...
@@ -25,11 +25,11 @@ const LatestOptimisticDeposits = () => {
const
[
socketAlert
,
setSocketAlert
]
=
React
.
useState
(
''
);
const
[
socketAlert
,
setSocketAlert
]
=
React
.
useState
(
''
);
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
const
handleSocketClose
=
React
.
useCallback
(()
=>
{
setSocketAlert
(
'
Connection is lost. Please reload page.
'
);
setSocketAlert
(
'
Connection is lost. Please reload
the
page.
'
);
},
[]);
},
[]);
const
handleSocketError
=
React
.
useCallback
(()
=>
{
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
)
=>
{
const
handleNewDepositMessage
:
SocketMessage
.
NewOptimisticDeposits
[
'
handler
'
]
=
React
.
useCallback
((
payload
)
=>
{
...
@@ -50,7 +50,7 @@ const LatestOptimisticDeposits = () => {
...
@@ -50,7 +50,7 @@ const LatestOptimisticDeposits = () => {
});
});
if
(
isError
)
{
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
)
{
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