Skip to content

Commit

Permalink
link of community tab for mainnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehor Podporinov authored and Yehor Podporinov committed Jan 30, 2024
1 parent 739f71e commit cf9f7aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/pages/HomePage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { AppTabs } from '@/common'
import { useContext } from '@/composables'
import { ROUTE_NAMES } from '@/enums'
import { type Tab } from '@/types'
import { config } from '@config'
const { $t } = useContext()
Expand All @@ -26,7 +27,11 @@ const tabs: Tab[] = [
{
title: $t('home-page.community-tab'),
id: 'community',
route: { name: ROUTE_NAMES.appCommunity },
...(!config.IS_MAINNET
? { route: { name: ROUTE_NAMES.appCommunity } }
: {
href: 'https://github.com/MorpheusAIs/Morpheus/blob/main/Contributions/Community%20-%20Proof%20of%20Contribution.md',
}),
},
{
title: $t('home-page.coders-tab'),
Expand Down
16 changes: 11 additions & 5 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from 'vue-router'

import { ROUTE_NAMES } from '@/enums'
import { config } from '@/config'

const routes: Array<RouteRecordRaw> = [
{
Expand All @@ -24,11 +25,16 @@ const routes: Array<RouteRecordRaw> = [
name: ROUTE_NAMES.appCapital,
component: () => import('@/pages/HomePage/views/CapitalView.vue'),
},
{
path: 'community',
name: ROUTE_NAMES.appCommunity,
component: () => import('@/pages/HomePage/views/CommunityView.vue'),
},
...(!config.IS_MAINNET
? [
{
path: 'community',
name: ROUTE_NAMES.appCommunity,
component: () =>
import('@/pages/HomePage/views/CommunityView.vue'),
},
]
: []),
],
},
{
Expand Down

0 comments on commit cf9f7aa

Please sign in to comment.