Skip to content

Commit 765fa2f

Browse files
committed
Fix unused variables causing CI failure
1 parent f02dd13 commit 765fa2f

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

src/components/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, ErrorInfo, ReactNode } from 'react';
1+
import { Component, ErrorInfo, ReactNode } from 'react';
22
import { Button } from './ui/Button';
33

44
interface Props {

src/pages/patient/PatientAppointments.tsx

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function PatientAppointments() {
2121
const queryClient = useQueryClient()
2222
const { register, handleSubmit, reset, setValue } = useForm<BookingForm>()
2323

24-
24+
2525
const { data: appointments, isLoading: isLoadingAppointments } = useQuery({
2626
queryKey: ['appointments', user?.id],
2727
queryFn: async () => {
@@ -43,22 +43,9 @@ export default function PatientAppointments() {
4343
enabled: !!user,
4444
})
4545

46-
47-
const { data: profile } = useQuery({
48-
queryKey: ['profile', user?.id],
49-
queryFn: async () => {
50-
const { data, error } = await supabase
51-
.from('profiles')
52-
.select('*')
53-
.eq('id', user!.id)
54-
.single();
55-
if (error) throw error;
56-
return data;
57-
},
58-
enabled: !!user
59-
});
6046

61-
47+
48+
6249
useEffect(() => {
6350
if (!user) return;
6451
const channel = supabase
@@ -96,7 +83,7 @@ export default function PatientAppointments() {
9683
mutationFn: async (data: BookingForm) => {
9784
if (!user) throw new Error("User not authenticated");
9885

99-
86+
10087
const { data: latestVitals } = await supabase
10188
.from('vitals')
10289
.select('*')
@@ -233,7 +220,7 @@ export default function PatientAppointments() {
233220
</form>
234221
</Modal>
235222

236-
{}
223+
{ }
237224
<div className="grid gap-6">
238225
<Card>
239226
<CardHeader>
@@ -294,7 +281,7 @@ export default function PatientAppointments() {
294281
</CardContent>
295282
</Card>
296283

297-
{}
284+
{ }
298285
<Card className="bg-slate-50 border-slate-200">
299286
<CardHeader>
300287
<div className="flex items-center gap-2">

0 commit comments

Comments
 (0)