Skip to content

Commit

Permalink
Rename MoveFoundsModal to MoveFundsModal (#4408)
Browse files Browse the repository at this point in the history
* Rename MoveFoundsModal to MoveFundsModal

* fixup

* tests

---------

Co-authored-by: Oleksandr Korniienko <oleksanderkorn@gmail.com>
Co-authored-by: Joystream Stats <dev@joystreamstats.live>
  • Loading branch information
3 people committed Jun 19, 2023
1 parent 0c885ec commit dbe849c
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/accounts/hooks/useHasRequiredStake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useHasRequiredStake = (stake: BN, lock: LockType) => {
}
}

const accountsWithLockedFounds = compatibleAccounts.reduce((acc, [compatibleAccountAddress, balances]) => {
const accountsWithLockedFunds = compatibleAccounts.reduce((acc, [compatibleAccountAddress, balances]) => {
const total = balances.total

let otherAccountsSum = BN_ZERO
Expand All @@ -85,7 +85,7 @@ export const useHasRequiredStake = (stake: BN, lock: LockType) => {
return {
hasRequiredStake,
accountsWithCompatibleLocks:
accountsWithLockedFounds && isEmptyObject(accountsWithLockedFounds) ? null : accountsWithLockedFounds,
accountsWithLockedFunds && isEmptyObject(accountsWithLockedFunds) ? null : accountsWithLockedFunds,
accountsWithTransferableBalance: null,
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/app/GlobalModals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styled from 'styled-components'

import { ClaimVestingModalCall } from '@/accounts/modals/ClaimVestingModal'
import { ClaimVestingModal } from '@/accounts/modals/ClaimVestingModal/ClaimVestingModal'
import { MoveFundsModal, MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModal, MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { RecoverBalanceModal, RecoverBalanceModalCall } from '@/accounts/modals/RecoverBalance'
import { TransferModal, TransferModalCall } from '@/accounts/modals/TransferModal'
// import { AddBountyModal, AddBountyModalCall } from '@/bounty/modals/AddBountyModal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useHasRequiredStake } from '@/accounts/hooks/useHasRequiredStake'
import { useMyAccounts } from '@/accounts/hooks/useMyAccounts'
import { useStakingAccountStatus } from '@/accounts/hooks/useStakingAccountStatus'
import { useTransactionFee } from '@/accounts/hooks/useTransactionFee'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { accountOrNamed } from '@/accounts/model/accountOrNamed'
import { useApi } from '@/api/hooks/useApi'
import { CurrencyName } from '@/app/constants/currency'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useBalance } from '@/accounts/hooks/useBalance'
import { useHasRequiredStake } from '@/accounts/hooks/useHasRequiredStake'
import { useStakingAccountStatus } from '@/accounts/hooks/useStakingAccountStatus'
import { useTransactionFee } from '@/accounts/hooks/useTransactionFee'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { Account } from '@/accounts/types'
import { useApi } from '@/api/hooks/useApi'
import { Modal, ModalHeader, ModalTransactionFooter } from '@/common/components/Modal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect } from 'react'

import { useHasRequiredStake } from '@/accounts/hooks/useHasRequiredStake'
import { useTransactionFee } from '@/accounts/hooks/useTransactionFee'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { useApi } from '@/api/hooks/useApi'
import { TextMedium, TokenValue } from '@/common/components/typography'
import { BN_ZERO } from '@/common/constants'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useBalance } from '@/accounts/hooks/useBalance'
import { useHasRequiredStake } from '@/accounts/hooks/useHasRequiredStake'
import { useStakingAccountStatus } from '@/accounts/hooks/useStakingAccountStatus'
import { useTransactionFee } from '@/accounts/hooks/useTransactionFee'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { Account } from '@/accounts/types'
import { Api } from '@/api'
import { useApi } from '@/api/hooks/useApi'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useBalance } from '@/accounts/hooks/useBalance'
import { useHasRequiredStake } from '@/accounts/hooks/useHasRequiredStake'
import { useStakingAccountStatus } from '@/accounts/hooks/useStakingAccountStatus'
import { useTransactionFee } from '@/accounts/hooks/useTransactionFee'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { Account } from '@/accounts/types'
import { Api } from '@/api'
import { useApi } from '@/api/hooks/useApi'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react'
import { Router } from 'react-router'
import { interpret } from 'xstate'

import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { ApiContext } from '@/api/providers/context'
import { CurrencyName } from '@/app/constants/currency'
import { GlobalModals } from '@/app/GlobalModals'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react'
import { act } from 'react-dom/test-utils'
import { MemoryRouter } from 'react-router'

import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { ApiContext } from '@/api/providers/context'
import { GlobalModals } from '@/app/GlobalModals'
import { CKEditorProps } from '@/common/components/CKEditor'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react'
import { MemoryRouter } from 'react-router'
import { interpret } from 'xstate'

import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { ApiContext } from '@/api/providers/context'
import { CurrencyName } from '@/app/constants/currency'
import { GlobalModals } from '@/app/GlobalModals'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react'
import { MemoryRouter } from 'react-router'
import { interpret } from 'xstate'

import { MoveFundsModalCall } from '@/accounts/modals/MoveFoundsModal'
import { MoveFundsModalCall } from '@/accounts/modals/MoveFundsModal'
import { ApiContext } from '@/api/providers/context'
import { GlobalModals } from '@/app/GlobalModals'
import { createType } from '@/common/model/createType'
Expand Down

2 comments on commit dbe849c

@vercel
Copy link

@vercel vercel bot commented on dbe849c Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on dbe849c Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-joystream.vercel.app
pioneer-2-git-dev-joystream.vercel.app
pioneer-2.vercel.app

Please sign in to comment.