Skip to content

Commit 6133c83

Browse files
committed
Lint
1 parent ecd66ef commit 6133c83

File tree

6 files changed

+46
-20
lines changed

6 files changed

+46
-20
lines changed

frontend/src/APIClients/matchAPIClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ export const matchAPIClient = {
3535
return response.data;
3636
},
3737
};
38-

frontend/src/APIClients/matchingAPIClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export const matchingAPIClient = {
2828
* @returns List of volunteer matches with full details and scores
2929
*/
3030
getAdminMatches: async (participantId: string): Promise<AdminMatchesResponse> => {
31-
const response = await baseAPIClient.get<AdminMatchesResponse>(`/matching/admin/${participantId}`);
31+
const response = await baseAPIClient.get<AdminMatchesResponse>(
32+
`/matching/admin/${participantId}`,
33+
);
3234
return response.data;
3335
},
3436
};
35-

frontend/src/APIClients/rankingAPIClient.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ export const rankingAPIClient = {
1919
* @param target Target role ('patient' or 'caregiver')
2020
* @returns List of ranking preferences
2121
*/
22-
getPreferences: async (userId: string, target: 'patient' | 'caregiver'): Promise<RankingPreference[]> => {
23-
const response = await baseAPIClient.get<RankingPreference[]>(`/ranking/preferences/${userId}`, {
24-
params: { target },
25-
});
22+
getPreferences: async (
23+
userId: string,
24+
target: 'patient' | 'caregiver',
25+
): Promise<RankingPreference[]> => {
26+
const response = await baseAPIClient.get<RankingPreference[]>(
27+
`/ranking/preferences/${userId}`,
28+
{
29+
params: { target },
30+
},
31+
);
2632
return response.data;
2733
},
2834
};
29-

frontend/src/components/admin/userProfile/MatchesContent.tsx

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,26 @@ export function MatchesContent({ participantId }: MatchesContentProps) {
127127
const allSelected = matches.length > 0 && selectedVolunteerIds.size === matches.length;
128128

129129
return (
130-
<Box p={0} bg="white" display="flex" flexDirection="column" alignItems="center" w="100%" px={8} py={8} overflowY="hidden">
130+
<Box
131+
p={0}
132+
bg="white"
133+
display="flex"
134+
flexDirection="column"
135+
alignItems="center"
136+
w="100%"
137+
px={8}
138+
py={8}
139+
overflowY="hidden"
140+
>
131141
{/* Cards Row - Above Table */}
132142
<HStack align="flex-start" gap={10} mb={10} justify="center" w="100%">
133143
{/* Profile Summary Card - Left */}
134144
<Box flexShrink={0} w="640px" minW="640px" maxW="640px">
135-
<ProfileSummaryCard userData={user?.userData} userEmail={user?.email} userId={participantId} />
145+
<ProfileSummaryCard
146+
userData={user?.userData}
147+
userEmail={user?.email}
148+
userId={participantId}
149+
/>
136150
</Box>
137151

138152
{/* Notes Modal - Right */}
@@ -174,11 +188,7 @@ export function MatchesContent({ participantId }: MatchesContentProps) {
174188
>
175189
<HStack gap={4} align="center" h="44px">
176190
<Box minW="16px">
177-
<Checkbox
178-
checked={allSelected}
179-
onCheckedChange={handleSelectAll}
180-
size="sm"
181-
/>
191+
<Checkbox checked={allSelected} onCheckedChange={handleSelectAll} size="sm" />
182192
</Box>
183193
<HStack gap={0} flex={1} justify="space-between" align="center" w="full">
184194
<Text fontSize="sm" fontWeight={400} color="#414651" w="150px">
@@ -237,7 +247,13 @@ export function MatchesContent({ participantId }: MatchesContentProps) {
237247
size="sm"
238248
/>
239249
</Box>
240-
<HStack gap={0} flex={1} justify="space-between" align="flex-start" w="full">
250+
<HStack
251+
gap={0}
252+
flex={1}
253+
justify="space-between"
254+
align="flex-start"
255+
w="full"
256+
>
241257
{/* Volunteer Name */}
242258
<Box w="150px">
243259
<Text fontSize="sm" fontWeight={400} color="#414651">
@@ -262,7 +278,12 @@ export function MatchesContent({ participantId }: MatchesContentProps) {
262278
{/* Diagnosis */}
263279
<Box w="180px">
264280
<VStack align="start" gap={0}>
265-
<Text fontSize="sm" fontWeight={400} color="#414651" lineHeight="1.2em">
281+
<Text
282+
fontSize="sm"
283+
fontWeight={400}
284+
color="#414651"
285+
lineHeight="1.2em"
286+
>
266287
{match.diagnosis || 'N/A'}
267288
</Text>
268289
</VStack>
@@ -315,7 +336,9 @@ export function MatchesContent({ participantId }: MatchesContentProps) {
315336
<HStack gap={2} flexWrap="wrap">
316337
{match.experiences.slice(0, 2).map((experience, idx) => {
317338
const truncatedExperience =
318-
experience.length > 20 ? `${experience.substring(0, 20)}...` : experience;
339+
experience.length > 20
340+
? `${experience.substring(0, 20)}...`
341+
: experience;
319342
return (
320343
<Badge
321344
key={idx}

frontend/src/components/admin/userProfile/NotesModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,3 @@ export function NotesModal({ participantId, participantName }: NotesModalProps)
104104
</Box>
105105
);
106106
}
107-

frontend/src/components/admin/userProfile/ProfileSummaryCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,3 @@ export function ProfileSummaryCard({ userData, userEmail, userId }: ProfileSumma
196196
</Box>
197197
);
198198
}
199-

0 commit comments

Comments
 (0)