Skip to content

Commit 398fca8

Browse files
committed
refactor: remove unused tip related info
1 parent efcd52a commit 398fca8

File tree

6 files changed

+13
-114
lines changed

6 files changed

+13
-114
lines changed

src/constants/common.ts

-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ export const MODAL_PAYLOAD_FORM = 'payload-form';
342342
export const MODAL_PROTOCOL_SELECT = 'protocol-select';
343343
export const MODAL_PERMISSION_MANAGER = 'permission-manager';
344344
export const MODAL_SCAN_QR = 'scan-qr';
345-
export const MODAL_RECIPIENT_HELPER = 'recipient-helper';
346345
export const MODAL_RECIPIENT_INFO = 'recipient-info';
347346
export const MODAL_RESET_WALLET = 'reset-wallet';
348347
export const MODAL_TRANSFER_RECEIVE = 'transfer-receive';

src/popup/components/Modals/RecipientHelper.vue

-85
This file was deleted.

src/popup/components/Modals/RecipientInfo.vue

+10-20
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,14 @@
3333
keypath="modals.recipient.msg.chain.msg"
3434
tag="div"
3535
scope="global"
36+
class="aens"
3637
>
3738
<strong class="title">
3839
{{ $t('modals.recipient.msg.chain.title') }}:
3940
</strong>
4041
{{ $t('modals.recipient.msg.chain.linkTitle') }}
4142
</i18n-t>
4243
</p>
43-
<p v-if="UNFINISHED_FEATURES && isProtocolAe">
44-
<i18n-t
45-
keypath="modals.readMore.msg"
46-
class="help"
47-
scope="global"
48-
>
49-
<a :href="AE_BLOG_CLAIM_TIP_URL">
50-
{{ $t('modals.readMore.linkTitle') }}
51-
</a>
52-
</i18n-t>
53-
</p>
5444
</div>
5545
</template>
5646
<template #footer>
@@ -75,8 +65,7 @@ import {
7565
Protocol,
7666
ResolveCallback,
7767
} from '@/types';
78-
import { AE_BLOG_CLAIM_TIP_URL } from '@/protocols/aeternity/config';
79-
import { PROTOCOLS, UNFINISHED_FEATURES } from '@/constants';
68+
import { PROTOCOLS } from '@/constants';
8069
import { ProtocolAdapterFactory } from '@/lib/ProtocolAdapterFactory';
8170
import Default from './Default.vue';
8271
import BtnMain from '../buttons/BtnMain.vue';
@@ -98,8 +87,6 @@ export default defineComponent({
9887
);
9988
10089
return {
101-
AE_BLOG_CLAIM_TIP_URL,
102-
UNFINISHED_FEATURES,
10390
protocolName,
10491
isProtocolAe,
10592
};
@@ -114,18 +101,21 @@ export default defineComponent({
114101
@use '@/styles/mixins';
115102
116103
.msg {
117-
@extend %face-sans-14-regular;
104+
@extend %face-sans-15-regular;
118105
119-
text-align: left;
106+
text-align: center;
120107
line-height: 20px;
121108
122109
.sub-header {
123-
@extend %face-sans-16-medium;
124-
125110
@include mixins.flex(center, center);
126111
127-
text-align: center;
112+
font-weight: 500;
128113
margin-bottom: 20px;
114+
margin-top: -12px;
115+
}
116+
117+
.aens {
118+
padding: 10px;
129119
}
130120
131121
.title {

src/popup/components/UrlStatus.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { computed, defineComponent, PropType } from 'vue';
2121
import { useI18n } from 'vue-i18n';
2222
import type { StatusIconType, UrlStatus } from '@/types';
23-
import { MODAL_RECIPIENT_HELPER } from '@/constants';
23+
import { MODAL_HELP } from '@/constants';
2424
import { useModals } from '@/composables';
2525
2626
import Default from '@/icons/badges/default.svg?vue-component';
@@ -84,7 +84,7 @@ export default defineComponent({
8484
});
8585
8686
function showModal() {
87-
openModal(MODAL_RECIPIENT_HELPER, {
87+
openModal(MODAL_HELP, {
8888
title: statusData.value?.title,
8989
msg: statusData.value?.msg,
9090
icon: statusData.value?.icon,

src/popup/locales/en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
"chain": {
306306
"title": "Send to .chain name",
307307
"linkTitle": "claim your own .chain name",
308-
"msg": "{0} AENS name is a human friendly nickname ending with .chain that points to recipient’s æccount. Before sending any funds make sure the recipient is still the name owner. You can also {1} and set a pointer to one of your public addresses."
308+
"msg": "{0} AENS name is a human friendly nickname ending with .chain that points to recipient’s account. Before sending any funds make sure the recipient is still the name owner."
309309
}
310310
}
311311
},

src/popup/router/modals.ts

-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
MODAL_PRIVATE_KEY_IMPORT,
2727
MODAL_PROTOCOL_SELECT,
2828
MODAL_SCAN_QR,
29-
MODAL_RECIPIENT_HELPER,
3029
MODAL_RECIPIENT_INFO,
3130
MODAL_RESET_WALLET,
3231
MODAL_TRANSFER_RECEIVE,
@@ -75,7 +74,6 @@ import QrCodeScanner from '@/popup/components/Modals/QrCodeScanner.vue';
7574
import Help from '@/popup/components/Modals/Help.vue';
7675
import AssetSelector from '@/popup/components/Modals/AssetSelector.vue';
7776
import ResetWallet from '@/popup/components/Modals/ResetWalletModal.vue';
78-
import RecipientHelper from '@/popup/components/Modals/RecipientHelper.vue';
7977
import RecipientInfo from '@/popup/components/Modals/RecipientInfo.vue';
8078
import ConsensusInfo from '@/popup/components/Modals/ConsensusInfo.vue';
8179
import PayloadForm from '@/popup/components/Modals/PayloadForm.vue';
@@ -200,9 +198,6 @@ export default () => {
200198
registerModal(MODAL_RESET_WALLET, {
201199
component: ResetWallet,
202200
});
203-
registerModal(MODAL_RECIPIENT_HELPER, {
204-
component: RecipientHelper,
205-
});
206201
registerModal(MODAL_RECIPIENT_INFO, {
207202
component: RecipientInfo,
208203
});

0 commit comments

Comments
 (0)