Skip to content

Commit

Permalink
do not export icons globally
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Sep 26, 2024
1 parent a0e21cf commit 7224932
Showing 9 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion cypress/component/integration/Dropdown.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import '../../../src/global.css';
import { Dropdown, MassaLogo } from '../../../src/components';
import { Dropdown } from '../../../src/components';
import { compareSnapshot } from '../../compareSnapshot';
import { MassaLogo } from '../../../src/components/Icons';

describe('Component | Integration | Dropdown', function () {
describe('Dropdown', () => {
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
"dependencies": {
"@headlessui/react": "^1.7.15",
"@massalabs/massa-web3": "^5.0.0-next",
"@massalabs/wallet-provider": "^3.0.0-next",
"@massalabs/wallet-provider": "^3.0.0-next.20240826165834",
"copy-to-clipboard": "^3.3.3",
"currency.js": "^2.0.4",
"dot-object": "^2.1.5",
3 changes: 2 additions & 1 deletion src/components/MNS/Mns.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Eth, Toast, WETH, createBridgedFt, toast } from '..';
import { Toast, toast } from '..';
import { createBridgedFt, Eth, WETH } from '../Icons';
import { Mns } from './Mns';

export default {
3 changes: 2 additions & 1 deletion src/components/MNS/Mns.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@
// @ts-ignore

import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
import { MassaLogo, Tag } from '..';
import { Tag } from '..';
import { MassaLogo } from '../Icons';

interface MnsProps extends ComponentPropsWithoutRef<'div'> {
mns: string;
1 change: 0 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ export * from './PopupModal';
export * from './Stepper';
export * from './Dropdown';
export * from './SideMenu';
export * from './Icons';
export * from './Toggle';
export * from './Balance';
export * from './ThemeMode';
Original file line number Diff line number Diff line change
@@ -12,8 +12,9 @@ import { ChainStatus } from './Status/ChainStatus';
import SwitchWalletButton from './SwitchWalletButton';
import Intl from '../i18n';
import { useAccountStore } from '../store';
import { MassaWallet, Tooltip } from '../../../components';
import { Tooltip } from '../../../components';
import { WalletName } from '@massalabs/wallet-provider';
import { MassaWallet } from '../../../components/Icons';

export const ConnectMassaWallet = () => {
const { currentWallet, wallets, setCurrentWallet, isFetching } =
3 changes: 2 additions & 1 deletion src/lib/ConnectMassaWallets/components/SelectMassaWallet.tsx
Original file line number Diff line number Diff line change
@@ -5,8 +5,9 @@ import React from 'react';
import { BearbySvg } from './BearbySvg';
import { Disconnected } from './Status/Disconnected';
import Intl from '../i18n';
import { Dropdown, MassaWallet } from '../../../components';
import { Dropdown } from '../../../components';
import { WalletName } from '@massalabs/wallet-provider';
import { MassaWallet } from '../../../components/Icons';

const walletList = [
{
3 changes: 2 additions & 1 deletion src/lib/token/AssetSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Dropdown, getAssetIcons, IOption } from '../../components';
import { Dropdown, IOption } from '../../components';
import Intl from './i18n';
import { formatAmount } from '../util/parseAmount';
import { Asset } from './models/AssetModel';
import { getAssetIcons } from '../../components/Icons';

interface AssetSelectorProps {
selectedAsset: Asset | undefined;

0 comments on commit 7224932

Please sign in to comment.