Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
5b9403c0
Unverified
Commit
5b9403c0
authored
May 05, 2020
by
Hanwen Cheng
Committed by
GitHub
May 05, 2020
Browse files
add missing commits (#604)
parent
66d938a1
Pipeline
#91078
failed with stages
in 3 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/sign/screens/QrScanner.tsx
View file @
5b9403c0
...
...
@@ -52,10 +52,10 @@ export function Scanner({
totalFramesCount
:
0
});
useEffect
(():
(()
=>
void
)
=>
{
const
unsubscribeFocus
=
navigation
.
addListener
(
'
focus
'
,
scannerStore
.
setReady
.
bind
(
scannerStore
)
);
const
unsubscribeFocus
=
navigation
.
addListener
(
'
focus
'
,
()
=>
{
setLastFrame
(
null
);
scannerStore
.
setReady
();
}
);
const
unsubscribeBlur
=
navigation
.
addListener
(
'
blur
'
,
scannerStore
.
setBusy
.
bind
(
scannerStore
)
...
...
test/e2e/injections.ts
View file @
5b9403c0
...
...
@@ -73,6 +73,7 @@ export const onMockBarCodeRead = async (
):
Promise
<
void
>
=>
{
const
scanRequest
=
scanRequestDataMap
[
txRequest
];
if
(
typeof
scanRequest
===
'
string
'
)
{
await
timeout
(
200
);
await
onBarCodeRead
(
buildSignRequest
(
scanRequest
));
}
else
if
(
Array
.
isArray
(
scanRequest
))
{
for
(
const
rawData
of
scanRequest
as
string
[])
{
...
...
@@ -80,6 +81,7 @@ export const onMockBarCodeRead = async (
await
onBarCodeRead
(
buildSignRequest
(
rawData
));
}
}
else
if
(
typeof
scanRequest
===
'
object
'
)
{
await
timeout
(
200
);
await
onBarCodeRead
(
buildSignRequest
(
scanRequest
.
rawData
,
scanRequest
.
data
)
);
...
...
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