Skip to content

Commit

Permalink
Fix Project type
Browse files Browse the repository at this point in the history
The type was written with snake_case but it should be camelCase to
fit with the project patterns
  • Loading branch information
negreirosleo committed Nov 17, 2023
1 parent a9aa719 commit 55e79cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
16 changes: 9 additions & 7 deletions frontend/src/app/tasks/__tests__/TaskForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ const setupTaskForm = () => {
const projects = [
{
id: 1,
is_active: true,
isActive: true,
invoice: null,
estimated_hours: null,
moved_hours: null,
init: '2023-11-17',
end: '2023-11-17',
estimatedHours: null,
movedHours: null,
description: 'Holidays',
project_type: null,
schedule_type: null,
customer_id: 1,
area_id: 1
projectType: null,
scheduleType: null,
customerId: 1,
areaId: 1
}
]

Expand Down
14 changes: 7 additions & 7 deletions frontend/src/domain/Project.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export type Project = {
id: number
area_id: number
customer_id: number
areaId: number
customerId: number
description: string
is_active: boolean
isActive: boolean
init: string | null
end: string | null
invoice: number | null
estimated_hours: number | null
moved_hours: number | null
project_type: string | null
schedule_type: string | null
estimatedHours: number | null
movedHours: number | null
projectType: string | null
scheduleType: string | null
}

0 comments on commit 55e79cb

Please sign in to comment.