diff --git a/frontend/src/features/Game/component/YourRewards/YourRewards.tsx b/frontend/src/features/Game/component/YourRewards/YourRewards.tsx index 59f976e..efb45bf 100644 --- a/frontend/src/features/Game/component/YourRewards/YourRewards.tsx +++ b/frontend/src/features/Game/component/YourRewards/YourRewards.tsx @@ -2,7 +2,7 @@ import styles from './YourRewards.module.scss'; import { cx } from '@/utils'; import { ReactComponent as YourRewardsSVG } from '@/assets/icons/your-rewards-icon.svg'; import { YourRewardsProps } from './YourRewards.interface'; -import { ScorePPV } from '@/components/ScorePPV'; +import { ScorePPV } from '@/features/ScoreBalance/components/ScorePPV'; function YourRewards({ rewards }: YourRewardsProps) { return ( diff --git a/frontend/src/features/Main/components/LeaderBoard/LeaderBoard.tsx b/frontend/src/features/Main/components/LeaderBoard/LeaderBoard.tsx index da76af4..c02efbe 100644 --- a/frontend/src/features/Main/components/LeaderBoard/LeaderBoard.tsx +++ b/frontend/src/features/Main/components/LeaderBoard/LeaderBoard.tsx @@ -2,7 +2,7 @@ import { Cell, Row, Table } from '@ui'; import styles from './LeaderBoard.module.scss'; import { cx } from '@/utils'; import { CellValue, TableRow } from '@/ui/Table/Table.interfaces'; -import { ScorePPV } from '@/components/ScorePPV'; +import { ScorePPV } from '@/features/ScoreBalance/components/ScorePPV'; const columns = ['#', 'Name and wallet', 'Victories', 'Success Rate', 'Total points']; diff --git a/frontend/src/components/ScorePPV/ScorePPV.interface.ts b/frontend/src/features/ScoreBalance/components/ScorePPV/ScorePPV.interface.ts similarity index 100% rename from frontend/src/components/ScorePPV/ScorePPV.interface.ts rename to frontend/src/features/ScoreBalance/components/ScorePPV/ScorePPV.interface.ts diff --git a/frontend/src/components/ScorePPV/ScorePPV.module.scss b/frontend/src/features/ScoreBalance/components/ScorePPV/ScorePPV.module.scss similarity index 100% rename from frontend/src/components/ScorePPV/ScorePPV.module.scss rename to frontend/src/features/ScoreBalance/components/ScorePPV/ScorePPV.module.scss diff --git a/frontend/src/components/ScorePPV/ScorePPV.tsx b/frontend/src/features/ScoreBalance/components/ScorePPV/ScorePPV.tsx similarity index 100% rename from frontend/src/components/ScorePPV/ScorePPV.tsx rename to frontend/src/features/ScoreBalance/components/ScorePPV/ScorePPV.tsx diff --git a/frontend/src/components/ScorePPV/index.ts b/frontend/src/features/ScoreBalance/components/ScorePPV/index.ts similarity index 100% rename from frontend/src/components/ScorePPV/index.ts rename to frontend/src/features/ScoreBalance/components/ScorePPV/index.ts diff --git a/frontend/src/features/ScoreBalance/components/index.ts b/frontend/src/features/ScoreBalance/components/index.ts new file mode 100644 index 0000000..0508f23 --- /dev/null +++ b/frontend/src/features/ScoreBalance/components/index.ts @@ -0,0 +1 @@ +export * from './ScorePPV'; diff --git a/frontend/src/features/ScoreBalance/hooks.ts b/frontend/src/features/ScoreBalance/hooks.ts index dd0b7b0..ff9ced4 100644 --- a/frontend/src/features/ScoreBalance/hooks.ts +++ b/frontend/src/features/ScoreBalance/hooks.ts @@ -1,11 +1,9 @@ -import { HexString } from '@polkadot/util/types'; -import { useEffect, useState } from 'react'; +import { useEffect } from 'react'; import { useAtomValue, useSetAtom } from 'jotai'; import { useAccount } from '@gear-js/react-hooks'; import { useReadState } from '@/hooks'; import { FT_BALANCE, FT_BALANCE_READY } from './atoms'; -import { IFTLogic, IFTMain, IFTStorage } from './types'; -import { getAccountBalanceById, getFTStorageIdByAccount } from './utils'; +import { IFTMain } from './types'; import { ADDRESS } from './consts'; import meta from './assets/fungible_token.meta.txt'; diff --git a/frontend/src/features/Wallet/components/WalletInfo/WalletInfo.tsx b/frontend/src/features/Wallet/components/WalletInfo/WalletInfo.tsx index afbe150..9d9ce2e 100644 --- a/frontend/src/features/Wallet/components/WalletInfo/WalletInfo.tsx +++ b/frontend/src/features/Wallet/components/WalletInfo/WalletInfo.tsx @@ -9,7 +9,7 @@ import { WalletInfoProps } from './WalletInfo.interfaces'; import { Button } from '@/ui'; import { WalletModal } from '../WalletModal'; import styles from './WalletInfo.module.scss'; -import { ScorePPV } from '@/components/ScorePPV'; +import { ScorePPV } from '@/features/ScoreBalance/components'; function WalletInfo({ account }: WalletInfoProps) { const address = useAtom(CONTRACT_ADDRESS_ATOM);