Skip to content

Commit

Permalink
Remove unused crypto peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov committed Aug 19, 2024
1 parent 43c946f commit 0aad3c5
Show file tree
Hide file tree
Showing 20 changed files with 8 additions and 251 deletions.
1 change: 0 additions & 1 deletion frontend/apps/galactic-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@polkadot/react-identicon": "3.5.1",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-scroll-area": "1.0.4",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.4",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/nft-marketplace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.2.0",
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/nft-master/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@gear-js/react-hooks": "0.12.1",
"@mantine/form": "6.0.8",
"@polkadot/api": "10.11.2",
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-scroll-area": "1.0.4",
"@tanstack/react-query": "5.29.0",
"assert": "2.0.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/nft-master/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ export { Text, textVariants } from './ui/text';
export { TextGradient } from './ui/text-gradient';
export { ScrollArea, ScrollBar } from './ui/scroll-area';
export { Sprite } from './ui/sprite';
export { AccountIcon } from './ui/account-icon';
11 changes: 0 additions & 11 deletions frontend/apps/nft-master/src/components/ui/account-icon.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/apps/nft-master/src/features/polkadot-icon/index.ts

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/apps/nft-master/src/features/polkadot-icon/types.ts

This file was deleted.

172 changes: 0 additions & 172 deletions frontend/apps/nft-master/src/features/polkadot-icon/utils.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { useAccount } from '@gear-js/react-hooks';
import { useNavigate } from 'react-router-dom';
import { copyToClipboard, isMobileDevice } from 'utils';
import { AccountIcon, Button, Modal, ScrollArea, Sprite } from 'components';
import { Button, Modal, ScrollArea, Sprite } from 'components';
import { usePendingUI } from 'hooks';
import clsx from 'clsx';
import Identicon from '@polkadot/react-identicon';
import { WALLETS } from '../../consts';
import { useWallet } from '../../hooks';
import { WalletItem } from '../wallet-item';
Expand Down Expand Up @@ -75,7 +76,7 @@ export function WalletModal({ onClose }: Props) {
className={styles.button}
onClick={handleAccountClick}
disabled={isActive}>
<AccountIcon address={address} className={styles.accountIcon} />
<Identicon value={address} size={20} theme="polkadot" />
<span>{meta.name}</span>
</Button>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from 'react';
import { useAccount } from '@gear-js/react-hooks';
import { AccountIcon, Button } from 'components';
import Identicon from '@polkadot/react-identicon';
import { Button } from 'components';
import clsx from 'clsx';
import { useIsAppReady } from 'app/hooks/use-is-app-ready';
import { WalletModal } from '../wallet-modal';
Expand All @@ -21,7 +22,7 @@ export function Wallet({ className }: { className?: string }) {
className={clsx(styles.button, className)}
onClick={() => setOpen(true)}
disabled={!isAppReady}>
{isSigned && <AccountIcon address={account.address} size={16} className={styles.icon} />}
{isSigned && <Identicon value={account.address} size={16} theme="polkadot" className={styles.icon} />}
<span>{isSigned ? account.meta.name : 'Connect'}</span>
</Button>

Expand Down
1 change: 0 additions & 1 deletion frontend/apps/non-fungible-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.2.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/syndote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.2.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/tamagotchi-battle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-scroll-area": "1.0.4",
"@tanstack/react-query": "5.29.0",
"@types/react": "18.2.33",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/tamagotchi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@polkadot/api": "10.11.2",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-scroll-area": "1.0.3",
"@tanstack/react-query": "5.29.0",
"buffer": "6.0.3",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/tequila-train/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-scroll-area": "1.0.3",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.4",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/vara-man/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-dialog": "1.1.1",
"@radix-ui/react-scroll-area": "1.1.0",
"@radix-ui/react-tabs": "1.1.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/varatube/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.2.0",
Expand Down
2 changes: 0 additions & 2 deletions frontend/apps/w3bstreaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
"@polkadot/react-identicon": "3.1.4",
"@polkadot/types": "10.11.2",
"@polkadot/util": "12.3.2",
"@polkadot/util-crypto": "12.3.2",
"@polkadot/wasm-crypto": "7.2.2",
"@radix-ui/react-scroll-area": "1.0.5",
"@tanstack/react-query": "5.29.0",
"@testing-library/jest-dom": "5.16.5",
Expand Down
Loading

0 comments on commit 0aad3c5

Please sign in to comment.