Skip to content

Commit

Permalink
add article
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Aug 13, 2024
1 parent df2f9d9 commit 4824ac1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/hooks/useNewTxsSocket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion ui/home/LatestBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ui/home/LatestTxs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ui/home/LatestWatchlistTxs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ui/home/latestBatches/LatestArbitrumL2Batches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ui/home/latestBatches/LatestZkEvmL2Batches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions ui/home/latestDeposits/LatestArbitrumDeposits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions ui/home/latestDeposits/LatestOptimisticDeposits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) {
Expand Down

0 comments on commit 4824ac1

Please sign in to comment.