Commit de941ba0 authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Merge pull request #2162 from blockscout/reload-the-page

add article
parents d6e06153 4824ac1d
......@@ -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({
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment