condition check gallery

This commit is contained in:
jackiettran
2025-12-16 13:50:23 -05:00
parent 372ab093ef
commit 27a7b641dd
8 changed files with 421 additions and 64 deletions

View File

@@ -332,10 +332,10 @@ export const mapsAPI = {
};
export const conditionCheckAPI = {
submitConditionCheck: (rentalId: string, formData: FormData) =>
api.post(`/condition-checks/${rentalId}`, formData, {
headers: { "Content-Type": "multipart/form-data" },
}),
submitConditionCheck: (
rentalId: string,
data: { checkType: string; imageFilenames: string[]; notes?: string }
) => api.post(`/condition-checks/${rentalId}`, data),
getConditionChecks: (rentalId: string) =>
api.get(`/condition-checks/${rentalId}`),
getConditionCheckTimeline: (rentalId: string) =>