Skip to content

Commit 4bc6e81

Browse files
authored
refactor(dapp): move icons to components (#494)
1 parent c45a9c9 commit 4bc6e81

File tree

11 files changed

+8
-56
lines changed

11 files changed

+8
-56
lines changed

dapp/src/components/dialogs/PersonalizeAvatarDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { isSubname } from '@iota/iota-names-sdk';
2222
import { useMutation, useQueryClient } from '@tanstack/react-query';
2323
import { useState } from 'react';
2424

25+
import { BrandedAssets } from '@/components/svgs';
2526
import {
2627
NameRecordData,
2728
NameUpdate,
@@ -32,7 +33,6 @@ import {
3233
} from '@/hooks';
3334
import { useGetVisualAssets } from '@/hooks/useGetVisualAssets';
3435
import { getNameObject } from '@/lib/utils/names';
35-
import { BrandedAssets } from '@/public/icons';
3636

3737
import { TruncatedNameWithTooltip } from '../TruncatedNameWithTooltip';
3838

dapp/src/components/layout/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Link from 'next/link';
66
import { useRouter, useSearchParams } from 'next/navigation';
77

88
import { TermsAndConditionsDialog } from '@/components/dialogs/TermsAndConditionsDialog';
9+
import { NamesLogoBranded } from '@/components/svgs';
910
import { FOOTER_LEGAL_LINKS, FOOTER_SOCIAL_LINKS } from '@/lib/constants';
10-
import { NamesLogoBranded } from '@/public/icons';
1111

1212
export function Footer() {
1313
const router = useRouter();

dapp/src/components/layout/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { ConnectButton, useCurrentWallet } from '@iota/dapp-kit';
99
import Link from 'next/link';
1010
import { usePathname } from 'next/navigation';
1111

12+
import { NamesLogoWeb } from '@/components/svgs';
1213
import { MY_NAMES_ROUTE, PROTECTED_ROUTES } from '@/lib/constants';
13-
import { NamesLogoWeb } from '@/public/icons';
1414
import { useAvailabilityCheckDialog } from '@/stores/useAvailabilityCheckDialog';
1515

1616
export function Navbar() {

dapp/src/components/name-card/NameCardIndicators.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// Copyright (c) 2025 IOTA Stiftung
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { Add, Calendar } from '@iota/apps-ui-icons';
4+
import { Add, Calendar, Subnames } from '@iota/apps-ui-icons';
55
import { ButtonUnstyled } from '@iota/apps-ui-kit';
66
import cx from 'clsx';
77

88
import { AuctionDetails, formatTimeRemaining, getTimeRemaining } from '@/auctions';
99
import { useCountdown } from '@/auctions/hooks/useCountdown';
1010

11-
import { SvgSubnames } from '../svgs/SvgSubnames';
12-
1311
const INDICATOR_PRIMARY_TEXT_COLOR = 'text-names-neutral-70';
1412
const INDICATOR_SECONDARY_TEXT_COLOR = 'text-iota-primary-80';
1513
const INDICATOR_COMMON_CLASSES =
@@ -72,7 +70,7 @@ export function SubnameCountIndicator({
7270
CLICKABLE_INDICATOR_CLASSES,
7371
)}
7472
>
75-
<SvgSubnames className="h-4 w-4" />
73+
<Subnames className="h-4 w-4" />
7674
{subnameCount} Subname{subnameCount !== 1 ? 's' : ''}
7775
</ButtonUnstyled>
7876
);
File renamed without changes.
File renamed without changes.

dapp/src/components/svgs/SvgSubnames.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// Copyright (c) 2024 IOTA Stiftung
1+
// Copyright (c) 2025 IOTA Stiftung
22
// SPDX-License-Identifier: Apache-2.0
33

4-
export { default as X } from './X';
54
export { default as NamesLogoBranded } from './NamesLogoBranded';
65
export { default as NamesLogoWeb } from './NamesLogoWeb';
76
export { default as BrandedAssets } from './BrandedAssets';

dapp/src/lib/constants/routes.constants.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Copyright (c) 2025 IOTA Stiftung
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { Discord } from '@iota/apps-ui-icons';
5-
6-
import { X } from '@/public/icons';
4+
import { Discord, SmX } from '@iota/apps-ui-icons';
75

86
import { ProtectedRouteTitle } from '../enums';
97
import type { Route } from '../interfaces';
@@ -28,7 +26,7 @@ export const FOOTER_SOCIAL_LINKS: Route[] = [
2826
},
2927
{
3028
path: 'https://x.com/iota',
31-
icon: <X />,
29+
icon: <SmX />,
3230
},
3331
];
3432

0 commit comments

Comments
 (0)