@@ -8,12 +8,10 @@ import CancelButton from '@/components/cancel-button'
88import Text from '@/components/text'
99import Info from '@/components/info'
1010import { useFormState , useMaxSteps , useNext , useStepIndex } from '@/components/multi-step-form'
11- import { isTemplate , isWallet , protocolDisplayName , protocolFormId , protocolLogName , walletGuideUrl , walletLud16Domain } from '@/wallets/lib/util'
12- import { WalletLayout , WalletLayoutHeader , WalletLayoutImageOrName , WalletLogs } from '@/wallets/client/components'
11+ import { isTemplate , isWallet , protocolDisplayName , protocolFormId , protocolLogName , walletLud16Domain } from '@/wallets/lib/util'
12+ import { WalletGuide , WalletLayout , WalletLayoutHeader , WalletLayoutImageOrName , WalletLogs } from '@/wallets/client/components'
1313import { TemplateLogsProvider , useTestSendPayment , useWalletLogger , useTestCreateInvoice , useWalletSupport } from '@/wallets/client/hooks'
1414import ArrowRight from '@/svgs/arrow-right-s-fill.svg'
15- import InfoIcon from '@/svgs/information-fill.svg'
16- import Link from 'next/link'
1715import { useFormikContext } from 'formik'
1816
1917import { WalletMultiStepFormContextProvider , Step , useWallet , useWalletProtocols , useProtocol , useProtocolForm } from './hooks'
@@ -40,20 +38,13 @@ export function WalletMultiStepForm ({ wallet }) {
4038 ] . filter ( Boolean ) ,
4139 [ support ] )
4240
43- const guideUrl = walletGuideUrl ( wallet . name )
44-
4541 return (
4642 < WalletLayout >
4743 < div className = { styles . form } >
4844 < WalletLayoutHeader >
4945 < WalletLayoutImageOrName name = { wallet . name } maxHeight = '80px' />
5046 </ WalletLayoutHeader >
51- { guideUrl && (
52- < Link href = { guideUrl } className = 'text-center text-reset fw-bold text-underline' target = '_blank' rel = 'noreferrer' >
53- < InfoIcon width = { 18 } height = { 18 } className = 'mx-1' />
54- guide
55- </ Link >
56- ) }
47+ < WalletGuide name = { wallet . name } />
5748 < WalletMultiStepFormContextProvider wallet = { wallet } initial = { initial } steps = { steps } >
5849 { steps . map ( step => {
5950 // WalletForm is aware of the current step via hooks
0 commit comments