diff --git a/ui/pages/desktop-pairing/__snapshots__/desktop-pairing.test.js.snap b/ui/pages/desktop-pairing/__snapshots__/desktop-pairing.test.js.snap index c3a42d035..586e81444 100644 --- a/ui/pages/desktop-pairing/__snapshots__/desktop-pairing.test.js.snap +++ b/ui/pages/desktop-pairing/__snapshots__/desktop-pairing.test.js.snap @@ -117,12 +117,12 @@ exports[`Desktop Pairing page should render otp component 1`] = ` style="display: inline;" tabindex="0" > -

123456 -

+

@@ -153,12 +153,10 @@ exports[`Desktop Pairing page should render otp component 1`] = `

diff --git a/ui/pages/desktop-pairing/desktop-pairing.component.js b/ui/pages/desktop-pairing/desktop-pairing.component.js index 098976b66..c529aa261 100644 --- a/ui/pages/desktop-pairing/desktop-pairing.component.js +++ b/ui/pages/desktop-pairing/desktop-pairing.component.js @@ -1,7 +1,6 @@ import React, { useState, useEffect, useRef, useContext } from 'react'; import { useHistory } from 'react-router-dom'; import PropTypes from 'prop-types'; -import Button from '../../components/ui/button'; import { SECOND } from '../../../shared/constants/time'; import { I18nContext } from '../../contexts/i18n'; import IconDesktopPairing from '../../components/ui/icon/icon-desktop-pairing'; @@ -10,13 +9,14 @@ import { TextVariant, DISPLAY, AlignItems, - BLOCK_SIZES, JustifyContent, + BackgroundColor, + BorderRadius, } from '../../helpers/constants/design-system'; import Box from '../../components/ui/box/box'; import { useCopyToClipboard } from '../../hooks/useCopyToClipboard'; import Tooltip from '../../components/ui/tooltip'; -import { Text } from '../../components/component-library'; +import { Text, Button } from '../../components/component-library'; export default function DesktopPairingPage({ generateDesktopOtp, @@ -104,11 +104,7 @@ export default function DesktopPairingPage({ {t('desktopPageTitle')} - + {t('desktopPageSubTitle')} - + {otp} @@ -137,9 +137,12 @@ export default function DesktopPairingPage({ marginBottom={6} > {t('desktopPairingExpireMessage', [ { return ( - +