Skip to content

Commit

Permalink
fix: conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
alessey committed Dec 13, 2024
1 parent 77fc8fa commit dabaa95
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 46 deletions.
18 changes: 3 additions & 15 deletions src/ui/react/nft/NFTCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,18 @@ import {
vi,
} from 'vitest';
import { useAccount } from 'wagmi';
<<<<<<< HEAD
import { useIsMounted } from '../../core-react/internal/hooks/useIsMounted';
=======
import { NFTProvider } from '../../../core-react/nft/providers/NFTProvider';
import { useIsMounted } from '../../../useIsMounted';
>>>>>>> 38ec07ca (fix: lint/tests)
import { useIsMounted } from '../../../core-react/internal/hooks/useIsMounted';
import { NFTCard } from './NFTCard';

vi.mock('wagmi', () => ({
useAccount: vi.fn(),
}));
<<<<<<< HEAD
vi.mock('../../core-react/internal/hooks/useTheme', () => ({
vi.mock('../../../core-react/internal/hooks/useTheme', () => ({
useTheme: vi.fn(() => 'default-light'),
}));
vi.mock('../../core-react/internal/hooks/useIsMounted');
vi.mock('./NFTProvider', () => ({
=======
vi.mock('../../../useTheme', () => ({
useTheme: vi.fn(() => 'default-light'),
}));
vi.mock('../../../useIsMounted');
vi.mock('../../../core-react/internal/hooks/useIsMounted');
vi.mock('../../../core-react/nft/providers/NFTProvider', () => ({
>>>>>>> 38ec07ca (fix: lint/tests)
NFTProvider: vi.fn(({ children }) => <div>{children}</div>),
}));

Expand Down
7 changes: 6 additions & 1 deletion src/ui/react/nft/NFTCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import { useIsMounted } from '../../../core-react/internal/hooks/useIsMounted';
import { useTheme } from '../../../core-react/internal/hooks/useTheme';
import { border, cn, color, pressable } from '../../../styles/theme';
import { useNFTData as defaultUseNFTData } from '../../../core-react/nft/hooks/useNFTData';
import { LifecycleType, type NFTCardReact } from '../../../core-react/nft/types';
import {
LifecycleType,
type NFTCardReact,
} from '../../../core-react/nft/types';
import NFTErrorBoundary from './NFTErrorBoundary';
import { NFTLifecycleProvider } from '../../../core-react/nft/providers/NFTLifecycleProvider';
import { NFTProvider } from '../../../core-react/nft/providers/NFTProvider';
import { NFTErrorFallback } from './NFTErrorFallback';

export function NFTCard({
Expand Down
17 changes: 3 additions & 14 deletions src/ui/react/nft/NFTMintCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,14 @@ import {
it,
vi,
} from 'vitest';
<<<<<<< HEAD
import { useIsMounted } from '../../core-react/internal/hooks/useIsMounted';
import { useIsMounted } from '../../../core-react/internal/hooks/useIsMounted';
import { NFTMintCard } from './NFTMintCard';

vi.mock('../../core-react/internal/hooks/useTheme', () => ({
vi.mock('../../../core-react/internal/hooks/useTheme', () => ({
useTheme: vi.fn(() => 'default-light'),
}));
vi.mock('../../core-react/internal/hooks/useIsMounted');
vi.mock('./NFTProvider', () => ({
=======
import { useIsMounted } from '../../../useIsMounted';
import { NFTMintCard } from './NFTMintCard';

vi.mock('../../../useTheme', () => ({
useTheme: vi.fn(() => 'default-light'),
}));
vi.mock('../../../useIsMounted');
vi.mock('../../../core-react/internal/hooks/useIsMounted');
vi.mock('../../../core-react/nft/providers/NFTProvider', () => ({
>>>>>>> 38ec07ca (fix: lint/tests)
NFTProvider: vi.fn(({ children }) => <div>{children}</div>),
}));

Expand Down
5 changes: 4 additions & 1 deletion src/ui/react/nft/NFTMintCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { useIsMounted } from '../../../core-react/internal/hooks/useIsMounted';
import { useTheme } from '../../../core-react/internal/hooks/useTheme';
import { background, border, cn, color } from '../../../styles/theme';
import { useMintData as defaultUseMintData } from '../../../core-react/nft/hooks/useMintData';
import { LifecycleType, type NFTMintCardReact } from '../../../core-react/nft/types';
import {
LifecycleType,
type NFTMintCardReact,
} from '../../../core-react/nft/types';
import { buildMintTransactionData as defaultBuildMintTransaction } from '../../../core/nft/utils/buildMintTransactionData';
import NFTErrorBoundary from './NFTErrorBoundary';
import { NFTErrorFallback } from './NFTErrorFallback';
Expand Down
15 changes: 2 additions & 13 deletions src/ui/react/nft/mint/NFTMintButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,14 @@ import {
useChainId,
} from 'wagmi';
import { mock } from 'wagmi/connectors';
<<<<<<< HEAD
import { useOnchainKit } from '../../../core-react/useOnchainKit';
import { useNFTLifecycleContext } from '../NFTLifecycleProvider';
import { useNFTContext } from '../NFTProvider';
import { NFTMintButton } from './NFTMintButton';

vi.mock('../NFTProvider');
vi.mock('../NFTLifecycleProvider');
vi.mock('../../../core-react/useOnchainKit');
=======
import { useNFTLifecycleContext } from '../../../../core-react/nft/providers/NFTLifecycleProvider';
import { useNFTContext } from '../../../../core-react/nft/providers/NFTProvider';
import { useOnchainKit } from '../../../../useOnchainKit';
import { useOnchainKit } from '../../../../core-react/useOnchainKit';
import { NFTMintButton } from './NFTMintButton';

vi.mock('../../../../core-react/nft/providers/NFTProvider');
vi.mock('../../../../core-react/nft/providers/NFTLifecycleProvider');
vi.mock('../../../../useOnchainKit');
>>>>>>> 38ec07ca (fix: lint/tests)
vi.mock('../../../../core-react/useOnchainKit');
vi.mock('wagmi', async (importOriginal) => {
return {
...(await importOriginal<typeof import('wagmi')>()),
Expand Down
4 changes: 2 additions & 2 deletions src/ui/react/nft/view/NFTOwner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { NFTOwner } from './NFTOwner';

vi.mock('../../../../core-react/useOnchainKit');
vi.mock('../../../../core-react/nft/providers/NFTProvider');
vi.mock('../../../identity', async () => ({
...(await vi.importActual('../../../identity')),
vi.mock('../../../../identity', async () => ({
...(await vi.importActual('../../../../identity')),
Identity: ({
className,
address,
Expand Down

0 comments on commit dabaa95

Please sign in to comment.