Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
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
LuckySwap
interface
Commits
e9bddcb6
Unverified
Commit
e9bddcb6
authored
Feb 06, 2023
by
Zach Pomerantz
Committed by
GitHub
Feb 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: surface connection error (#5931)
* fix: surface connection error * fix: to spec * fix: sentence case
parent
19e45fd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
PendingView.tsx
src/components/WalletModal/PendingView.tsx
+6
-8
index.tsx
src/components/WalletModal/index.tsx
+1
-1
No files found.
src/components/WalletModal/PendingView.tsx
View file @
e9bddcb6
...
@@ -65,12 +65,12 @@ const LoadingWrapper = styled.div`
...
@@ -65,12 +65,12 @@ const LoadingWrapper = styled.div`
export
default
function
PendingView
({
export
default
function
PendingView
({
connector
,
connector
,
error
=
false
,
error
,
tryActivation
,
tryActivation
,
openOptions
,
openOptions
,
}:
{
}:
{
connector
:
Connector
connector
:
Connector
error
?:
boolean
error
?:
string
tryActivation
:
(
connector
:
Connector
)
=>
void
tryActivation
:
(
connector
:
Connector
)
=>
void
openOptions
:
()
=>
void
openOptions
:
()
=>
void
})
{
})
{
...
@@ -82,12 +82,10 @@ export default function PendingView({
...
@@ -82,12 +82,10 @@ export default function PendingView({
<
ErrorGroup
>
<
ErrorGroup
>
<
AlertTriangleIcon
/>
<
AlertTriangleIcon
/>
<
ThemedText
.
MediumHeader
marginBottom=
{
12
}
>
<
ThemedText
.
MediumHeader
marginBottom=
{
12
}
>
<
Trans
>
Error connecting
</
Trans
>
<
Trans
>
Connection failed
</
Trans
>
</
ThemedText
.
MediumHeader
>
</
ThemedText
.
MediumHeader
>
<
ThemedText
.
BodyPrimary
fontSize=
{
16
}
marginBottom=
{
36
}
textAlign=
"center"
>
<
ThemedText
.
BodyPrimary
marginBottom=
{
36
}
textAlign=
"center"
>
<
Trans
>
{
error
}
The connection attempt failed. Please click try again and follow the steps to connect in your wallet.
</
Trans
>
</
ThemedText
.
BodyPrimary
>
</
ThemedText
.
BodyPrimary
>
<
ButtonPrimary
<
ButtonPrimary
$borderRadius=
"12px"
$borderRadius=
"12px"
...
@@ -95,7 +93,7 @@ export default function PendingView({
...
@@ -95,7 +93,7 @@ export default function PendingView({
tryActivation
(
connector
)
tryActivation
(
connector
)
}
}
}
}
>
>
<
Trans
>
Try
A
gain
</
Trans
>
<
Trans
>
Try
a
gain
</
Trans
>
</
ButtonPrimary
>
</
ButtonPrimary
>
<
ButtonEmpty
width=
"fit-content"
padding=
"0"
marginTop=
{
20
}
>
<
ButtonEmpty
width=
"fit-content"
padding=
"0"
marginTop=
{
20
}
>
<
ThemedText
.
Link
onClick=
{
openOptions
}
>
<
ThemedText
.
Link
onClick=
{
openOptions
}
>
...
...
src/components/WalletModal/index.tsx
View file @
e9bddcb6
...
@@ -355,7 +355,7 @@ export default function WalletModal({
...
@@ -355,7 +355,7 @@ export default function WalletModal({
<
PendingView
<
PendingView
openOptions=
{
openOptions
}
openOptions=
{
openOptions
}
connector=
{
pendingConnector
}
connector=
{
pendingConnector
}
error=
{
!!
pendingError
}
error=
{
pendingError
}
tryActivation=
{
tryActivation
}
tryActivation=
{
tryActivation
}
/>
/>
)
}
)
}
...
...
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