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
f863fd41
Commit
f863fd41
authored
Jun 12, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove connected message and decrease closing timeout
parent
f5500773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
WalletTooltip.tsx
ui/snippets/walletMenu/WalletTooltip.tsx
+3
-3
No files found.
ui/snippets/walletMenu/WalletTooltip.tsx
View file @
f863fd41
...
@@ -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
}
...
...
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