Skip to content

Commit

Permalink
refactor: remove circular dependencies in snap-account-redirect.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Feb 19, 2025
1 parent 42bd11d commit 1ab014f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions development/circular-deps.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,5 @@
[
"ui/pages/notifications/notifications-list.tsx",
"ui/pages/notifications/notifications.tsx"
],
[
"ui/pages/snap-account-redirect/components/index.ts",
"ui/pages/snap-account-redirect/components/snap-account-redirect-context.tsx",
"ui/pages/snap-account-redirect/components/snap-account-redirect-message.tsx",
"ui/pages/snap-account-redirect/components/url-display-box.tsx",
"ui/pages/snap-account-redirect/snap-account-redirect.tsx"
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ButtonVariant,
Text,
} from '../../../components/component-library';
import { SnapAccountRedirectProps } from '../snap-account-redirect';
import type { SnapAccountRedirectProps } from '../snap-account-redirect';
import {
AlignItems,
Display,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Display, TextVariant } from '../../../helpers/constants/design-system';
import { Box, Text } from '../../../components/component-library';
import { SnapAccountRedirectProps } from '../snap-account-redirect';
import type { SnapAccountRedirectProps } from '../snap-account-redirect';
import { SnapDelineator } from '../../../components/app/snaps/snap-delineator';
import UrlDisplayBox from './url-display-box';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { SnapAccountRedirectProps } from '../snap-account-redirect';
import type { SnapAccountRedirectProps } from '../snap-account-redirect';
import {
AlignItems,
BackgroundColor,
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/snap-account-redirect/snap-account-redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
FlexDirection,
} from '../../helpers/constants/design-system';
import SnapAuthorshipHeader from '../../components/app/snaps/snap-authorship-header';
import { SnapAccountRedirectContent } from './components';
import SnapAccountRedirectContent from './components/snap-account-redirect-context';

export type SnapAccountRedirectProps = {
url: string;
Expand Down

0 comments on commit 1ab014f

Please sign in to comment.