Refactor DashboardOverview.vue to temporarily mock order events
- Comment out the useOrderEvents import and replace it with a temporary mock object for order events, indicating a future move to the market module. - This change aims to improve modularity and maintainability within the market components.
This commit is contained in:
parent
17c07c37a0
commit
6c1d040e60
1 changed files with 3 additions and 2 deletions
|
|
@ -220,7 +220,7 @@ import { useRouter } from 'vue-router'
|
||||||
import { useMarketStore } from '@/stores/market'
|
import { useMarketStore } from '@/stores/market'
|
||||||
import { useAuth } from '@/composables/useAuth'
|
import { useAuth } from '@/composables/useAuth'
|
||||||
import { useMarket } from '@/composables/useMarket'
|
import { useMarket } from '@/composables/useMarket'
|
||||||
import { useOrderEvents } from '@/composables/useOrderEvents'
|
// import { useOrderEvents } from '@/composables/useOrderEvents' // TODO: Move to market module
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Badge } from '@/components/ui/badge'
|
import { Badge } from '@/components/ui/badge'
|
||||||
import {
|
import {
|
||||||
|
|
@ -236,7 +236,8 @@ const router = useRouter()
|
||||||
const marketStore = useMarketStore()
|
const marketStore = useMarketStore()
|
||||||
const auth = useAuth()
|
const auth = useAuth()
|
||||||
const { isConnected } = useMarket()
|
const { isConnected } = useMarket()
|
||||||
const orderEvents = useOrderEvents()
|
// const orderEvents = useOrderEvents() // TODO: Move to market module
|
||||||
|
const orderEvents = { isSubscribed: ref(false) } // Temporary mock
|
||||||
|
|
||||||
// Computed properties
|
// Computed properties
|
||||||
const orderStats = computed(() => {
|
const orderStats = computed(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue