refactor: Clean up imports and unused variables in ticket-related components

- Remove unused imports from PurchaseTicketDialog.vue and useUserTickets.ts for improved code clarity.
- Update events.ts to eliminate the unused paymentRequest parameter in payInvoiceWithWallet function.
- Simplify MyTickets.vue by removing the unused unregisteredTickets variable and related QR code generation logic, enhancing maintainability.
This commit is contained in:
padreug 2025-08-01 22:30:38 +02:00
parent deabf9464a
commit 217ca70334
4 changed files with 8 additions and 15 deletions

View file

@ -9,7 +9,7 @@ import { ScrollArea } from '@/components/ui/scroll-area'
import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import { format } from 'date-fns'
import { Ticket, User, Calendar, CreditCard, CheckCircle, Clock, AlertCircle, QrCode, ChevronLeft, ChevronRight } from 'lucide-vue-next'
import { Ticket, User, CreditCard, CheckCircle, Clock, AlertCircle, ChevronLeft, ChevronRight } from 'lucide-vue-next'
const { isAuthenticated, userDisplay } = useAuth()
const {
@ -17,7 +17,7 @@ const {
paidTickets,
pendingTickets,
registeredTickets,
unregisteredTickets,
groupedTickets,
isLoading,
error,
@ -66,14 +66,7 @@ async function generateQRCode(ticketId: string) {
}
}
// Generate QR codes for all tickets in a group
async function generateAllQRCodes(tickets: any[]) {
for (const ticket of tickets) {
if (!qrCodes.value[ticket.id]) {
await generateQRCode(ticket.id)
}
}
}
// Ticket cycling functions
function getCurrentTicketIndex(eventId: string) {