Skip to content

Commit

Permalink
feat: added new routes to view router
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Huamani <jonathan.huamani@iovlabs.org>
  • Loading branch information
jjhcuadrosIOV committed Dec 11, 2021
1 parent f31b5c0 commit 366a011
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

<script>
import { provide, ref } from 'vue'
// import Connection from '@/components/commons/Connection.vue'
import NavBar from '@/components/layouts/NavBar.vue'
import Footer from '@/components/layouts/Footer.vue'
import Sider from '@/components/layouts/Sider'
Expand Down
15 changes: 15 additions & 0 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { createWebHistory, createRouter } from 'vue-router'
// 1. Define route components.
// These can be imported from other files
import Home from '@/views/Home.vue'
import TransactionsPage from '@/views/TransactionsPage'
import TokenListPage from '@/views/TokenListPage'
import NetworkInfoPage from '@/views/NetworkInfoPage'

// 2. Define some routes
// Each route should map to a component.
Expand All @@ -13,6 +16,18 @@ const routes = [
name: 'Home',
component: Home,
},
{
path: '/transactions',
component: TransactionsPage,
},
{
path: '/network-info',
component: NetworkInfoPage,
},
{
path: '/token-list',
component: TokenListPage,
},
]

// 3. Create the router instance and pass the `routes` option
Expand Down

0 comments on commit 366a011

Please sign in to comment.