Skip to content

Commit

Permalink
feat: invite page route name constant
Browse files Browse the repository at this point in the history
  • Loading branch information
peronczyk committed Jul 19, 2024
1 parent e25a0df commit 696d1b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/popup/pages/More.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</template>
</PanelItem>
<PanelItem
:to="{ name: 'invite' }"
:to="{ name: ROUTE_INVITE }"
:title="$t('pages.titles.giftCards')"
:disabled="!isActiveAccountAe"
data-cy="invite"
Expand Down Expand Up @@ -104,7 +104,7 @@ import { BUG_REPORT_URL, PROTOCOLS, UNFINISHED_FEATURES } from '@/constants';
import { useAccounts, useAddressBook, useAeSdk } from '@/composables';
import { AE_DEX_URL, AE_SIMPLEX_URL } from '@/protocols/aeternity/config';
import { buildAeFaucetUrl } from '@/protocols/aeternity/helpers';
import { ROUTE_ADDRESS_BOOK } from '@/popup/router/routeNames';
import { ROUTE_ADDRESS_BOOK, ROUTE_INVITE } from '@/popup/router/routeNames';
import PanelItem from '../components/PanelItem.vue';
Expand Down Expand Up @@ -151,6 +151,7 @@ export default defineComponent({
BUG_REPORT_URL,
UNFINISHED_FEATURES,
ROUTE_ADDRESS_BOOK,
ROUTE_INVITE,
activeAccountFaucetUrl,
addressBookCount,
isActiveAccountAe,
Expand Down
1 change: 1 addition & 0 deletions src/popup/router/routeNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const ROUTE_NETWORK_SETTINGS = 'network-settings';
export const ROUTE_NETWORK_ADD = 'network-add';
export const ROUTE_NETWORK_EDIT = 'network-edit';
export const ROUTE_WEB_IFRAME_POPUP = 'web-iframe-popup';
export const ROUTE_INVITE = 'invite';
export const ROUTE_INVITE_CLAIM = 'invite-claim';
export const ROUTE_DONATE_ERROR = 'donate-error';
export const ROUTE_APPS_BROWSER = 'apps-browser';
Expand Down
3 changes: 2 additions & 1 deletion src/popup/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
ROUTE_TOKEN_DETAILS,
ROUTE_NETWORK_ADD,
ROUTE_NETWORK_EDIT,
ROUTE_INVITE,
ROUTE_INVITE_CLAIM,
ROUTE_DONATE_ERROR,
ROUTE_AUCTION_BID,
Expand Down Expand Up @@ -592,7 +593,7 @@ export const routes: WalletAppRouteConfig[] = [
},
{
path: '/more/invite',
name: 'invite',
name: ROUTE_INVITE,
component: Invite,
meta: {
title: 'giftCards',
Expand Down

0 comments on commit 696d1b5

Please sign in to comment.