diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/StakedInfo.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/StakedInfo.tsx index 024f9f9384a..95890afd07f 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/StakedInfo.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/StakedInfo.tsx @@ -10,9 +10,9 @@ import { useGetDelegatedStake, DELEGATED_STAKES_QUERY_REFETCH_INTERVAL, DELEGATED_STAKES_QUERY_STALE_TIME, + useValidatorInfo, } from '@iota/core'; import { KeyValueInfo, Panel, TooltipPosition } from '@iota/apps-ui-kit'; -import { useValidatorInfo } from '@/hooks'; export function StakedInfo({ validatorAddress, diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/UnstakeView.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/UnstakeView.tsx index bdc60e80d20..bc2bbf01310 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/UnstakeView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/UnstakeView.tsx @@ -41,7 +41,7 @@ interface UnstakeDialogProps { export function UnstakeView({ extendedStake, handleClose, - showActiveStatus = true, + showActiveStatus, }: UnstakeDialogProps): JSX.Element { const stakingReward = BigInt(extendedStake.estimatedReward ?? '').toString(); const [rewards, rewardSymbol] = useFormatCoin(stakingReward, IOTA_TYPE_ARG); diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/Validator.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/Validator.tsx index 1e281433a77..1b35e06f91e 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/Validator.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/Validator.tsx @@ -1,6 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import { ImageIcon, ImageIconSize, formatPercentageDisplay } from '@iota/core'; +import { ImageIcon, ImageIconSize, formatPercentageDisplay, useValidatorInfo } from '@iota/core'; import { Card, CardBody, @@ -12,7 +12,6 @@ import { BadgeType, } from '@iota/apps-ui-kit'; import { formatAddress } from '@iota/iota-sdk/utils'; -import { useValidatorInfo } from '@/hooks'; export function Validator({ address, diff --git a/apps/wallet-dashboard/hooks/index.ts b/apps/wallet-dashboard/hooks/index.ts index f262ea2e616..373c4e399dc 100644 --- a/apps/wallet-dashboard/hooks/index.ts +++ b/apps/wallet-dashboard/hooks/index.ts @@ -10,4 +10,3 @@ export * from './useCreateSendAssetTransaction'; export * from './useGetCurrentEpochStartTimestamp'; export * from './useTimelockedUnstakeTransaction'; export * from './useExplorerLinkGetter'; -export * from '@iota/core/src/hooks/stake/useValidatorInfo'; diff --git a/apps/wallet/tsconfig.json b/apps/wallet/tsconfig.json index 4da06a3efe1..15c97c419b0 100644 --- a/apps/wallet/tsconfig.json +++ b/apps/wallet/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "./configs/ts/tsconfig.dev", - "include": ["src", "configs", "tests", "../core/src/utils/stake/createValidationSchema.ts"], + "include": ["src", "configs", "tests"], "compilerOptions": { "noEmit": true }