fix: remove unused variables from Svelte components
This commit is contained in:
@@ -13,12 +13,11 @@
|
||||
import type { Booking as BookingType } from '$lib/types/booking';
|
||||
|
||||
interface Props {
|
||||
_openBookingModal: (bookingId: string) => void;
|
||||
openEditBookingModal: (bookingId: string, nextAppointmentStart?: string | null) => void;
|
||||
openUserModal: (userId: string) => void;
|
||||
}
|
||||
|
||||
const { _openBookingModal, openEditBookingModal, openUserModal }: Props = $props();
|
||||
const { openEditBookingModal, openUserModal }: Props = $props();
|
||||
|
||||
type Booking = {
|
||||
id: string;
|
||||
@@ -270,7 +269,7 @@
|
||||
showPaymentModal = true;
|
||||
}
|
||||
|
||||
function handlePaymentComplete(_payment: unknown) {
|
||||
function handlePaymentComplete() {
|
||||
toast.success('Payment completed');
|
||||
showPaymentModal = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user