Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: typo corrections, condition adjustments and import updates #2466

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions HeliumVotePlugin/components/PositionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ export const PositionCard: React.FC<PositionCardProps> = ({
} = useFlipPositionLockupKind()

const {
loading: isTransfering,
error: transferingError,
loading: isTransferring,
error: transferringError,
transferPosition,
} = useTransferPosition()

Expand Down Expand Up @@ -267,7 +267,7 @@ export const PositionCard: React.FC<PositionCardProps> = ({
targetPosition,
})

if (!transferingError) {
if (!transferringError) {
await refetchState()
}
}
Expand Down Expand Up @@ -350,7 +350,7 @@ export const PositionCard: React.FC<PositionCardProps> = ({
isExtending ||
isSpliting ||
isClosing ||
isTransfering ||
isTransferring ||
isFlipping ||
isDelegating ||
isUndelegating ||
Expand Down Expand Up @@ -489,7 +489,7 @@ export const PositionCard: React.FC<PositionCardProps> = ({
className="w-full"
onClick={() => setIsTransferModalOpen(true)}
disabled={isSubmitting}
isLoading={isTransfering}
isLoading={isTransferring}
>
Transfer
</Button>
Expand Down
2 changes: 1 addition & 1 deletion HeliumVotePlugin/components/TransferTokensModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const TransferTokensModal: React.FC<TransferTokensModalProps> = ({
<br />
<div className="text-red">
{hasTransferablePositions
? 'You cant transfer to Landrush positions after the Landrush period, and transfering out of one after the Landrush period, will result in losing the multiplier!'
? 'You cant transfer to Landrush positions after the Landrush period, and transferring out of one after the Landrush period, will result in losing the multiplier!'
: 'There are no positions that meet this criteria.'}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/instructions/programs/mangoV4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const instructions = () => ({
label,
valKey,
suffix,
prefix: perfix,
prefix: prefix,
}: {
label: string
valKey: string
Expand Down
2 changes: 1 addition & 1 deletion hooks/useVoteByCouncilToggle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// The voteByCouncil toggle UI is avaiable on a number of views in Realms.
// The voteByCouncil toggle UI is available on a number of views in Realms.
// Whether it is available, or enabled, is determined by the realm's config and the user's tokens.
// This hook encapsulates this logic
import { useEffect, useState } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion hooks/useVoteRecords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { PublicKey } from '@solana/web3.js'
import { useRealmQuery } from './queries/realm'
import { useRealmCommunityMintInfoQuery } from './queries/mintInfo'
import useLegacyConnectionContext from './useLegacyConnectionContext'
import { calculateMaxVoteScore } from '@models/proposal/calulateMaxVoteScore'
import { calculateMaxVoteScore } from '@models/proposal/calculateMaxVoteScore'
import { getNetworkFromEndpoint } from '@utils/connection'
import { fetchDigitalAssetsByOwner } from './queries/digitalAssets'
import { useNftRegistrarCollection } from './useNftRegistrarCollection'
Expand Down