Skip to content

Commit 57adcc7

Browse files
authored
Merge pull request #11499 from kodadot/refactor--replace-neo-icon-4
refactor: replace neoicon with nuxt icon (4)
2 parents 6d43b22 + 042defb commit 57adcc7

37 files changed

+106
-140
lines changed

components/collection/drop/requirement/PrivateMintRequirements.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@
5050
root-class="ml-2"
5151
content-class="capitalize"
5252
>
53-
<NeoIcon
54-
icon="fa-info-circle"
55-
pack="fa-regular"
53+
<KIcon
54+
name="i-mdi:information-slab-circle"
5655
class="text-k-grey"
5756
/>
5857

@@ -83,18 +82,18 @@
8382
{{ mintLabel }}
8483
</p>
8584

86-
<NeoIcon
85+
<KIcon
8786
v-if="readyToMint"
8887
class="ml-1"
89-
icon="check"
88+
name="i-mdi:check"
9089
/>
9190
</div>
9291
</div>
9392
</div>
9493
</template>
9594

9695
<script setup lang="ts">
97-
import { NeoIcon, NeoTooltip } from '@kodadot1/brick'
96+
import { NeoTooltip } from '@kodadot1/brick'
9897
import type { HolderOfCollection } from '../types'
9998
import { useCollectionMinimal } from '@/components/collection/utils/useCollectionDetails'
10099
import { useDrop, useDropMinimumFunds } from '@/components/drops/useDrops'

components/collection/unlockable/UnlockableItemInfo.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
class="flex-1 lg:flex-0 lg:w-1/2 flex flex-col justify-center order-1"
77
>
88
<div class="flex items-center font-bold text-base mb-2">
9-
<NeoIcon
10-
icon="unlock"
9+
<KIcon
10+
name="i-mdi:lock-open"
1111
class="mr-2"
1212
/>
1313
{{ $t('mint.unlockable.howItemWork') }}
@@ -43,7 +43,7 @@
4343
</template>
4444

4545
<script setup lang="ts">
46-
import { NeoButton, NeoIcon } from '@kodadot1/brick'
46+
import { NeoButton } from '@kodadot1/brick'
4747
4848
const props = defineProps({
4949
collectionId: {

components/common/ChooseCollectionDropdown.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
:icon="active ? 'chevron-up' : 'chevron-down'"
2626
>
2727
{{ selectedCollection.name || selectedCollection.id }}
28-
<NeoIcon
28+
<KIcon
2929
v-if="selectedCollection"
30-
icon="circle-check"
31-
variant="success"
32-
class="ml-3"
30+
name="i-mdi:check-circle-outline"
31+
class="ml-3 text-k-green"
3332
/>
3433
</NeoButton>
3534
</template>
@@ -49,8 +48,8 @@
4948
class="w-full"
5049
>
5150
<div class="w-full">
52-
<NeoIcon
53-
icon="plus"
51+
<KIcon
52+
name="i-mdi:plus"
5453
class="mr-1"
5554
/>
5655
{{ $t('massmint.createNewCollection') }}
@@ -71,8 +70,8 @@
7170
class="w-full"
7271
>
7372
<div class="w-full">
74-
<NeoIcon
75-
icon="plus"
73+
<KIcon
74+
name="i-mdi:plus"
7675
class="mr-1"
7776
/>
7877
{{ $t('massmint.createNewCollection') }}
@@ -88,7 +87,6 @@ import {
8887
NeoButton,
8988
NeoDropdown,
9089
NeoDropdownItem,
91-
NeoIcon,
9290
} from '@kodadot1/brick'
9391
import type { MintedCollection } from '@/composables/transaction/types'
9492
import { useCollectionForMint } from '@/composables/massmint/useMassMint'

components/common/ConnectWallet/WalletAssetTrades.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@
4141
variant="icon"
4242
@click="refetch"
4343
>
44-
<NeoIcon
45-
icon="refresh"
46-
/>
44+
<KIcon name="i-mdi:refresh" />
4745
</NeoButton>
4846
</div>
4947

@@ -130,7 +128,7 @@
130128
</template>
131129

132130
<script setup lang="ts">
133-
import { NeoIcon, NeoButton, NeoSkeleton } from '@kodadot1/brick'
131+
import { NeoButton, NeoSkeleton } from '@kodadot1/brick'
134132
import { TradeType, type TradeNftItem } from '@/components/trade/types'
135133
import { TRADE_TYPE_TO_PROFILE_TAB_MAP } from '@/components/profile/utils'
136134
import { formatDistanceToNow } from '@/utils/datetime'

components/common/LoadPreviousPage.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
class="flex justify-center pb-4"
44
@click="onClick"
55
>
6-
<NeoIcon icon="chevron-up" />
6+
<KIcon name="i-mdi:chevron-up" />
77
</a>
88
</template>
99

1010
<script lang="ts" setup>
11-
import { NeoIcon } from '@kodadot1/brick'
12-
1311
const emit = defineEmits(['click'])
1412
const onClick = (event) => {
1513
emit('click', event)

components/common/NonRecommendFieldNotification.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
class="flex items-center gap-1 text-sm !text-yellow-600 hover:!text-yellow-700 capitalize"
2525
@click="emit('undo')"
2626
>
27-
<NeoIcon
28-
icon="undo"
27+
<KIcon
28+
name="i-mdi:undo"
2929
size="small"
3030
/>
3131
{{ $t('general.undo') }}
@@ -37,7 +37,7 @@
3737
</template>
3838

3939
<script lang="ts" setup>
40-
import { NeoButton, NeoIcon } from '@kodadot1/brick'
40+
import { NeoButton } from '@kodadot1/brick'
4141
4242
defineProps<{
4343
show: boolean

components/common/autoTeleport/AutoTeleportModal.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<hr class="my-4">
2929

3030
<div class="flex items-start">
31-
<NeoIcon
32-
icon="lightbulb"
31+
<KIcon
32+
name="i-mdi:lightbulb"
3333
size="small"
3434
class="mr-2 block"
3535
/>
@@ -65,7 +65,7 @@
6565
</template>
6666

6767
<script setup lang="ts">
68-
import { NeoButton, NeoIcon, NeoModal } from '@kodadot1/brick'
68+
import { NeoButton, NeoModal } from '@kodadot1/brick'
6969
import type { AutoTeleportInteractions } from './utils'
7070
import { getActionDetails } from './utils'
7171
import type { TeleportTransition } from '@/utils/teleport'

components/common/autoTeleport/AutoTeleportPopover.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@
33
:placement="position"
44
:append-to="body"
55
>
6-
<NeoIcon
7-
icon="fa-info-circle"
8-
pack="fa-regular"
6+
<KIcon
7+
name="i-mdi:information-slab-circle"
98
class="ml-2 text-k-grey"
109
/>
1110

1211
<template #content>
1312
<div class="w-[16rem] bg-background-color text-sm border p-4">
1413
<div class="flex text-base mb-3">
15-
<NeoIcon
16-
icon="fa-info-circle"
17-
pack="fa-regular"
14+
<KIcon
15+
name="i-mdi:information-slab-circle"
1816
class="mr-2"
1917
/>
2018

@@ -74,8 +72,6 @@
7472
</template>
7573

7674
<script setup lang="ts">
77-
import { NeoIcon } from '@kodadot1/brick'
78-
7975
defineProps<{
8076
transition: TeleportTransition
8177
position: 'top' | 'left'

components/common/confirmPurchaseModal/ConfirmPurchaseModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
:label="$t('tooltip.supportFee')"
4141
multiline
4242
>
43-
<NeoIcon icon="circle-question" />
43+
<KIcon name="i-mdi:help-circle-outline" />
4444
</NeoTooltip>
4545
</div>
4646
<CommonTokenMoney :value="supportFee" />
@@ -83,7 +83,7 @@
8383
</template>
8484

8585
<script setup lang="ts">
86-
import { NeoIcon, NeoModal, NeoTooltip } from '@kodadot1/brick'
86+
import { NeoModal, NeoTooltip } from '@kodadot1/brick'
8787
import { totalPriceUsd } from '../shoppingCart/utils'
8888
import ModalBody from '@/components/shared/modals/ModalBody.vue'
8989
import { sum } from '@/utils/math'

components/common/party/Cusor.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
left: `${connection.cursor?.x}px`,
88
}"
99
>
10-
<NeoIcon
10+
<KIcon
1111
:id="`cursor-${connection.id}`"
12-
icon="arrow-pointer"
13-
pack="fas"
12+
name="i-mdi:cursor-default-outline"
1413
:class="color"
1514
/>
1615

@@ -45,7 +44,6 @@
4544
</template>
4645

4746
<script setup lang="ts">
48-
import { NeoIcon } from '@kodadot1/brick'
4947
import type { CursorDetails, CursorLabel } from './CursorParty.vue'
5048
import type { UserDetails } from '@/composables/party/types'
5149

0 commit comments

Comments
 (0)