Commit f863fd41 authored by Max Alekseenko's avatar Max Alekseenko

remove connected message and decrease closing timeout

parent f5500773
...@@ -26,7 +26,7 @@ const WalletTooltip = ({ children, isDisabled, isMobile, isWalletConnected, isAu ...@@ -26,7 +26,7 @@ const WalletTooltip = ({ children, isDisabled, isMobile, isWalletConnected, isAu
if (isAutoConnectDisabled) { if (isAutoConnectDisabled) {
return <span>Your wallet is not<br/>connected to this app.<br/>Connect your wallet<br/>in the app directly</span>; return <span>Your wallet is not<br/>connected to this app.<br/>Connect your wallet<br/>in the app directly</span>;
} }
return <span>Your wallet is connected<br/>with Blockscout</span>; return null;
} }
return <span>Connect your wallet<br/>to Blockscout for<br/>full-featured access</span>; return <span>Connect your wallet<br/>to Blockscout for<br/>full-featured access</span>;
}, [ isWalletConnected, isAutoConnectDisabled ]); }, [ isWalletConnected, isAutoConnectDisabled ]);
...@@ -45,7 +45,7 @@ const WalletTooltip = ({ children, isDisabled, isMobile, isWalletConnected, isAu ...@@ -45,7 +45,7 @@ const WalletTooltip = ({ children, isDisabled, isMobile, isWalletConnected, isAu
if (!isDisabled && needToShow) { if (!isDisabled && needToShow) {
timer1 = setTimeout(() => { timer1 = setTimeout(() => {
setIsTooltipShown.on(); setIsTooltipShown.on();
timer2 = setTimeout(() => setIsTooltipShown.off(), 5 * SECOND); timer2 = setTimeout(() => setIsTooltipShown.off(), 3 * SECOND);
if (!wasShown && isMarketplacePage) { if (!wasShown && isMarketplacePage) {
window.localStorage.setItem(LOCAL_STORAGE_KEY, 'true'); window.localStorage.setItem(LOCAL_STORAGE_KEY, 'true');
} }
...@@ -67,7 +67,7 @@ const WalletTooltip = ({ children, isDisabled, isMobile, isWalletConnected, isAu ...@@ -67,7 +67,7 @@ const WalletTooltip = ({ children, isDisabled, isMobile, isWalletConnected, isAu
label={ label } label={ label }
textAlign="center" textAlign="center"
padding={ 2 } padding={ 2 }
isDisabled={ isDisabled || (isWalletConnected && !isAppPage) } isDisabled={ isDisabled || !label || (isWalletConnected && !isAppPage) }
openDelay={ 500 } openDelay={ 500 }
isOpen={ isTooltipShown || (isMobile ? false : undefined) } isOpen={ isTooltipShown || (isMobile ? false : undefined) }
onClose={ setIsTooltipShown.off } onClose={ setIsTooltipShown.off }
......
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