@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
22import { useNavigate } from 'react-router-dom' ;
33import styled from 'styled-components' ;
44import aymLogo from '../../assets/aym-logo.png' ;
5+ import pandaLogoWide from '../../assets/panda-logo-wide.png' ;
56import relayXLogo from '../../assets/relayx-logo.png' ;
67import twetchLogo from '../../assets/twetch-logo.png' ;
78import { BackButton } from '../../components/BackButton' ;
@@ -65,8 +66,8 @@ const ExpertImportWrapper = styled.div`
6566const WalletText = styled ( Text ) < ColorThemeProps > `
6667 color: ${ ( { theme } ) => theme . white } ;
6768 margin: 0;
68- font-weight: 700 ;
69- font-size: 1. 1rem;
69+ font-weight: 600 ;
70+ font-size: 1rem;
7071 text-align: center;
7172` ;
7273
@@ -137,11 +138,17 @@ export const RestoreWallet = () => {
137138
138139 const handleWalletSelection = ( wallet ?: SupportedWalletImports ) => {
139140 setImportWallet ( wallet ) ;
141+ if ( wallet === 'wif' ) {
142+ navigate ( '/import-wallet' ) ;
143+ return ;
144+ }
140145 setStep ( 2 ) ;
141146 } ;
142147
143148 const getRestoreTitle = ( ) => {
144- return importWallet === 'relayx'
149+ return importWallet === 'panda'
150+ ? 'Restore Panda Wallet'
151+ : importWallet === 'relayx'
145152 ? 'Restore Relay Wallet'
146153 : importWallet === 'twetch'
147154 ? 'Restore Twetch Wallet'
@@ -249,18 +256,24 @@ export const RestoreWallet = () => {
249256 onClick = { ( ) => handleWalletSelection ( wallet ) }
250257 element = {
251258 < >
259+ < Show when = { wallet === 'panda' } >
260+ < WalletLogo src = { pandaLogoWide } style = { { height : '2.25rem' } } />
261+ </ Show >
252262 < Show when = { wallet === 'relayx' } >
253- < WalletLogo src = { relayXLogo } />
263+ < WalletLogo src = { relayXLogo } style = { { height : '1,75rem' } } />
254264 </ Show >
255265 < Show when = { wallet === 'twetch' } >
256- < WalletLogo src = { twetchLogo } />
266+ < WalletLogo src = { twetchLogo } style = { { height : '1.25rem' } } />
257267 </ Show >
258268 < Show when = { wallet === 'aym' } >
259269 < WalletLogo src = { aymLogo } style = { { height : '2rem' } } />
260270 </ Show >
261271 < Show when = { ! wallet } >
262272 < WalletText theme = { theme } > Other Wallet</ WalletText >
263273 </ Show >
274+ < Show when = { wallet === 'wif' } >
275+ < WalletText theme = { theme } > WIF (1Sat, SHUA, etc)</ WalletText >
276+ </ Show >
264277 </ >
265278 }
266279 />
@@ -272,11 +285,11 @@ export const RestoreWallet = () => {
272285 < >
273286 < BackButton onClick = { ( ) => navigate ( '/' ) } />
274287 < Content >
275- < HeaderText theme = { theme } > Restore from Wallet</ HeaderText >
288+ < HeaderText theme = { theme } > Restore a Wallet</ HeaderText >
276289 < Text theme = { theme } style = { { marginBottom : '1rem' , width : '90%' } } >
277- Select from a wallet you'd like to restore from.
290+ Select the wallet you'd like to restore from
278291 </ Text >
279- { availableWallets ( [ 'relayx' , 'twetch' , 'aym' , undefined ] ) }
292+ { availableWallets ( [ 'panda' , ' relayx', 'twetch' , 'aym' , undefined , 'wif' ] ) }
280293 </ Content >
281294 </ >
282295 ) ;
0 commit comments