Move wallets into top level directory wallet/
This commit is contained in:
parent
f01ce79afa
commit
cba76444dd
|
@ -13,9 +13,9 @@ import assertApiKeyNotPermitted from './apiKey'
|
|||
import { createInvoice as clnCreateInvoice } from '@/lib/cln'
|
||||
import { bolt11Tags } from '@/lib/bolt11'
|
||||
import { checkInvoice } from 'worker/wallet'
|
||||
import * as lnd from '@/components/wallet/lnd'
|
||||
import * as lnAddr from '@/components/wallet/lightning-address'
|
||||
import * as cln from '@/components/wallet/cln'
|
||||
import * as lnd from 'wallets/lnd'
|
||||
import * as lnAddr from 'wallets/lightning-address'
|
||||
import * as cln from 'wallets/cln'
|
||||
import { fetchLnAddrInvoice } from '@/lib/wallet'
|
||||
|
||||
export const SERVER_WALLET_DEFS = [lnd, lnAddr, cln]
|
||||
|
|
|
@ -22,7 +22,7 @@ import SearchIcon from '../../svgs/search-line.svg'
|
|||
import classNames from 'classnames'
|
||||
import SnIcon from '@/svgs/sn.svg'
|
||||
import { useHasNewNotes } from '../use-has-new-notes'
|
||||
import { useWallets } from '@/components/wallet'
|
||||
import { useWallets } from 'wallets'
|
||||
|
||||
export function Brand ({ className }) {
|
||||
return (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { useCallback, useMemo } from 'react'
|
||||
import { useMe } from './me'
|
||||
import { gql, useApolloClient, useMutation } from '@apollo/client'
|
||||
import { useWallet } from './wallet'
|
||||
import { useWallet } from '../wallets'
|
||||
import { FAST_POLL_INTERVAL, JIT_INVOICE_TIMEOUT_MS } from '@/lib/constants'
|
||||
import { INVOICE } from '@/fragments/wallet'
|
||||
import Invoice from '@/components/invoice'
|
||||
|
|
|
@ -2,7 +2,7 @@ import QRCode from 'qrcode.react'
|
|||
import { CopyInput, InputSkeleton } from './form'
|
||||
import InvoiceStatus from './invoice-status'
|
||||
import { useEffect } from 'react'
|
||||
import { useWallet } from './wallet'
|
||||
import { useWallet } from '../wallets'
|
||||
import Bolt11Info from './bolt11-info'
|
||||
|
||||
export default function Qr ({ asIs, value, useWallet: automated, statusVariant, description, status }) {
|
||||
|
|
|
@ -3,7 +3,7 @@ import styles from '@/styles/wallet.module.css'
|
|||
import Plug from '@/svgs/plug.svg'
|
||||
import Gear from '@/svgs/settings-5-fill.svg'
|
||||
import Link from 'next/link'
|
||||
import { Status } from './wallet'
|
||||
import { Status } from '../wallets'
|
||||
|
||||
export default function WalletCard ({ wallet }) {
|
||||
const { card: { title, badges } } = wallet
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Button } from 'react-bootstrap'
|
|||
import { useToast } from './toast'
|
||||
import { useShowModal } from './modal'
|
||||
import { WALLET_LOGS } from '@/fragments/wallet'
|
||||
import { getServerWallet } from './wallet'
|
||||
import { getServerWallet } from '../wallets'
|
||||
import { gql, useMutation, useQuery } from '@apollo/client'
|
||||
import { useMe } from './me'
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import { WalletSecurityBanner } from '@/components/banners'
|
|||
import { WalletLogs } from '@/components/wallet-logger'
|
||||
import { useToast } from '@/components/toast'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useWallet, Status } from '@/components/wallet'
|
||||
import { useWallet, Status } from 'wallets'
|
||||
import Info from '@/components/info'
|
||||
import Text from '@/components/text'
|
||||
import { AutowithdrawSettings } from '@/components/autowithdraw-shared'
|
||||
|
|
|
@ -2,7 +2,7 @@ import { getGetServerSideProps } from '@/api/ssrApollo'
|
|||
import Layout from '@/components/layout'
|
||||
import styles from '@/styles/wallet.module.css'
|
||||
import Link from 'next/link'
|
||||
import { useWallets, walletPrioritySort } from '@/components/wallet'
|
||||
import { useWallets, walletPrioritySort } from 'wallets'
|
||||
import { useEffect, useState } from 'react'
|
||||
import dynamic from 'next/dynamic'
|
||||
|
||||
|
|
|
@ -5,17 +5,17 @@ import { useWalletLogger } from '@/components/wallet-logger'
|
|||
import { SSR } from '@/lib/constants'
|
||||
import { bolt11Tags } from '@/lib/bolt11'
|
||||
|
||||
import * as lnbits from '@/components/wallet/lnbits'
|
||||
import * as nwc from '@/components/wallet/nwc'
|
||||
import * as lnc from '@/components/wallet/lnc'
|
||||
import * as lnd from '@/components/wallet/lnd'
|
||||
import * as lnAddr from '@/components/wallet/lightning-address'
|
||||
import * as cln from '@/components/wallet/cln'
|
||||
import * as lnbits from 'wallets/lnbits'
|
||||
import * as nwc from 'wallets/nwc'
|
||||
import * as lnc from 'wallets/lnc'
|
||||
import * as lnd from 'wallets/lnd'
|
||||
import * as lnAddr from 'wallets/lightning-address'
|
||||
import * as cln from 'wallets/cln'
|
||||
import { gql, useApolloClient, useQuery } from '@apollo/client'
|
||||
import { REMOVE_WALLET, WALLET_BY_TYPE } from '@/fragments/wallet'
|
||||
import { autowithdrawInitial } from '@/components/autowithdraw-shared'
|
||||
import { useShowModal } from '@/components/modal'
|
||||
import { useToast } from '../toast'
|
||||
import { useToast } from '../components/toast'
|
||||
|
||||
// wallet definitions
|
||||
export const WALLET_DEFS = [lnbits, nwc, lnc, lnd, lnAddr, cln]
|
|
@ -4,7 +4,7 @@ import { Form, PasswordInput, SubmitButton } from '@/components/form'
|
|||
import CancelButton from '@/components/cancel-button'
|
||||
import { InvoiceCanceledError, InvoiceExpiredError } from '@/components/payment'
|
||||
import { bolt11Tags } from '@/lib/bolt11'
|
||||
import { Status } from '@/components/wallet'
|
||||
import { Status } from 'wallets'
|
||||
import { lncSchema } from '@/lib/validate'
|
||||
|
||||
export const name = 'lnc'
|
Loading…
Reference in New Issue