Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Refactores Wallet feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Yauheni committed Aug 20, 2023
1 parent be1c650 commit 4e2059a
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down
1 change: 1 addition & 0 deletions frontend/src/features/ScoreBalance/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ScorePPV';
6 changes: 2 additions & 4 deletions frontend/src/features/ScoreBalance/hooks.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4e2059a

Please sign in to comment.