Skip to content

Commit 84b244c

Browse files
Fixed circular dependencies (#427)
1 parent 14b1007 commit 84b244c

File tree

28 files changed

+2491
-6912
lines changed

28 files changed

+2491
-6912
lines changed

pnpm-lock.yaml

Lines changed: 2437 additions & 6854 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
22
import { PageNotFound } from 'pages/PageNotFound/PageNotFound';
33
import { routes } from 'routes';
44
import { AxiosInterceptors, BatchTransactionsContextProvider } from 'wrappers';
5-
import { Layout } from './components';
5+
import { Layout } from './components/Layout';
66

77
export const App = () => {
88
return (

src/components/Header/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
99
import classNames from 'classnames';
1010
import { MouseEvent } from 'react';
1111
import { useNavigate } from 'react-router-dom';
12-
import { Logo, Tooltip } from 'components';
1312
import { GITHUB_REPO_URL } from 'config';
1413
import {
1514
ACCOUNTS_ENDPOINT,
@@ -22,6 +21,8 @@ import {
2221
useGetNetworkConfig
2322
} from 'lib';
2423
import { RouteNamesEnum } from 'localConstants';
24+
import { Logo } from '../Logo';
25+
import { Tooltip } from '../Tooltip';
2526
import { ThemeTooltip } from './components';
2627
import styles from './header.styles';
2728

src/components/Layout/Layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PropsWithChildren } from 'react';
2-
3-
import { Footer, Header } from 'components';
42
import { AuthRedirectWrapper } from 'wrappers';
3+
import { Footer } from '../Footer';
4+
import { Header } from '../Header';
55

66
// prettier-ignore
77
const styles = {

src/components/OutputContainer/OutputContainer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import classNames from 'classnames';
22
import { PropsWithChildren } from 'react';
3-
4-
import { Loader } from 'components';
53
import { WithClassnameType } from 'types';
4+
import { Loader } from '../Loader';
65

76
// prettier-ignore
87
const styles = {

src/components/OutputContainer/components/PingPongOutput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { faArrowUpRightFromSquare } from '@fortawesome/free-solid-svg-icons';
22
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3-
import { Label } from 'components';
43
import { contractAddress } from 'config';
54
import {
65
ACCOUNTS_ENDPOINT,
@@ -9,6 +8,7 @@ import {
98
SignedTransactionType,
109
useGetNetworkConfig
1110
} from 'lib';
11+
import { Label } from '../../Label';
1212
import { TransactionsOutput } from './TransactionsOutput';
1313

1414
const styles = {

src/components/OutputContainer/components/TransactionOutput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { faArrowUpRightFromSquare } from '@fortawesome/free-solid-svg-icons';
22
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3-
import { Label } from 'components';
43
import {
54
ACCOUNTS_ENDPOINT,
65
FormatAmount,
@@ -10,6 +9,7 @@ import {
109
TRANSACTIONS_ENDPOINT,
1110
useGetNetworkConfig
1211
} from 'lib';
12+
import { Label } from '../../Label';
1313

1414
const styles = {
1515
transactionContainer: 'transaction-container flex flex-col',

src/components/PingPongComponent/PingPongComponent.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
33
import { TokenLoginType } from '@multiversx/sdk-dapp/out/types/login.types';
44
import { Duration } from 'luxon';
55
import { useEffect, useState } from 'react';
6-
import {
7-
Label,
8-
MissingNativeAuthError,
9-
OutputContainer,
10-
PingPongOutput
11-
} from 'components';
126
import { contractAddress } from 'config';
137
import { getCountdownSeconds, setTimeRemaining } from 'helpers';
148
import {
@@ -19,6 +13,10 @@ import {
1913
} from 'lib';
2014
import { ACCOUNTS_ENDPOINT, Transaction, useGetPendingTransactions } from 'lib';
2115
import { ItemsIdentifiersEnum } from 'pages/Dashboard/dashboard.types';
16+
import { Label } from '../Label';
17+
import { MissingNativeAuthError } from '../MissingNativeAuthError';
18+
import { OutputContainer } from '../OutputContainer';
19+
import { PingPongOutput } from '../OutputContainer/components';
2220

2321
const styles = {
2422
pingPongContainer: 'ping-pong-container flex flex-col gap-6',

src/components/Tooltip/Tooltip.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import classNames from 'classnames';
22
import { CSSProperties, MouseEvent, useState } from 'react';
33
import { Tooltip as ReactTooltip } from 'react-tooltip';
4-
5-
import { Drawer } from 'components';
6-
4+
import { Drawer } from '../Drawer';
75
import { TooltipPlaceEnum, TooltipPropsType } from './tooltip.types';
86

97
// prettier-ignore

src/components/index.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)