Skip to content

Commit

Permalink
frontend: show point-to-device graphic on pairing step
Browse files Browse the repository at this point in the history
Before there was a disabled grayed out continue button on the
pairing step when the user should focus on the device and
confirm the code.

Changed so that the is a point-to-device graphic without
a disabled button. Once the pairing is confirmed it changes
to a continue button.
  • Loading branch information
thisconnect committed Oct 25, 2022
1 parent 47620fb commit fdc9da2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions frontends/web/src/routes/device/bitbox02/bitbox02.tsx
Expand Up @@ -516,13 +516,17 @@ class BitBox02 extends Component<Props, State> {
)}
</ViewContent>
<ViewButtons>
<Button
primary
onClick={() => this.channelVerify(true)}
disabled={!deviceVerified}
hidden={status === 'pairingFailed'}>
{t('button.continue')}
</Button>
{status !== 'pairingFailed' ? (
deviceVerified ? (
<Button
primary
onClick={() => this.channelVerify(true)}>
{t('button.continue')}
</Button>
) : (
<PointToBitBox02 />
)
) : null}
</ViewButtons>
</View>
)}
Expand Down

0 comments on commit fdc9da2

Please sign in to comment.