Refactor imports and enhance type handling across components
- Update import paths for useTicketPurchase in PurchaseTicketDialog.vue to reflect new module structure. - Adjust type handling in Navbar.vue and various market components to use 'any' for improved compatibility with existing data structures. - Enhance useLightningPayment composable to include shipping zone details, ensuring better order management. - Remove unused pages (events.vue, MyTickets.vue, OrderHistory.vue) to streamline the codebase and improve maintainability.
This commit is contained in:
parent
18f48581cd
commit
861c032300
12 changed files with 37 additions and 1217 deletions
|
|
@ -4,7 +4,7 @@ import { onUnmounted } from 'vue'
|
|||
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
import { useTicketPurchase } from '@/composables/useTicketPurchase'
|
||||
import { useTicketPurchase } from '@/modules/events/composables/useTicketPurchase'
|
||||
import { useAuth } from '@/composables/useAuth'
|
||||
import { User, Wallet, CreditCard, Zap, Ticket } from 'lucide-vue-next'
|
||||
import { formatEventPrice, formatWalletBalance } from '@/lib/utils/formatting'
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const totalBalance = computed(() => {
|
|||
})
|
||||
|
||||
// Try to get chat service from DI (may not be available if chat module not loaded)
|
||||
const chatService = tryInjectService(SERVICE_TOKENS.CHAT_SERVICE)
|
||||
const chatService = tryInjectService(SERVICE_TOKENS.CHAT_SERVICE) as any
|
||||
|
||||
// Compute total unread messages (reactive)
|
||||
const totalUnreadMessages = computed(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue