Skip to content

Commit

Permalink
fix: adjust re-link warning ui
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed May 14, 2024
1 parent 3955d4e commit 9d27205
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/components/popup-window/popup-window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { Box } from '../box'
export const PopupWindow = styled(Box, {
padding: '18px 32px',
position: 'relative',
height: 'calc(100% - 28px)',
height: '100%',
boxSizing: 'border-box',
display: 'flex',
justifyContent: 'space-between',
flexDirection: 'column',
variants: {
content: {
Expand Down
3 changes: 1 addition & 2 deletions src/components/warning/warning.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import WarningSvg from './warning.svg'
import './warning.scss'

export const Warning = (props: { header: string; subheader?: string }) => (
export const Warning = (props: { header: string }) => (
<div className="warning-box">
<img src={WarningSvg} />
<div>
<div className="warning-box-header">{props.header}</div>
{props.subheader && <div>{props.subheader}</div>}
</div>
</div>
)
4 changes: 2 additions & 2 deletions src/pairing/components/connection-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const ConnectionPassword = ({
using it with dApps in this web browser.
</PairingHeader>

<Box mt="xl" mb="xl" p="none">
<Box mt="sm" mb="sm" p="none">
<QrCode
value={JSON.stringify({
password: connectionPassword,
Expand All @@ -43,7 +43,7 @@ export const ConnectionPassword = ({
/>
</Box>

<Box textAlign="center" mb="md">
<Box textAlign="center" mb="lg">
{connectionsClient.hasNoConnections() ? (
<LinkComponent
style={{ fontSize: '16px', color: 'white', fontWeight: 'bold' }}
Expand Down
5 changes: 1 addition & 4 deletions src/pairing/components/relink-warning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ export const RelinkWarning = () => {
}, [])
return oldConnection ? (
<>
<Warning
header="Your Connector has been updated"
subheader=" Please re-link your Radix Wallet"
></Warning>
<Warning header="Please update your Radix Wallet to version 1.6 (or newer) and re-link"></Warning>
</>
) : null
}

0 comments on commit 9d27205

Please sign in to comment.