fix(frontend): Fix all type issues
This commit is contained in:
@@ -137,20 +137,20 @@ async function handleRestore() {
|
||||
}
|
||||
}
|
||||
|
||||
function getStatusColor(status: ApplicationFormStatus): string {
|
||||
function getStatusColor(status: ApplicationFormStatus) {
|
||||
switch (status) {
|
||||
case 'DRAFT':
|
||||
return 'gray'
|
||||
return 'neutral' as const
|
||||
case 'SUBMITTED':
|
||||
return 'blue'
|
||||
return 'info' as const
|
||||
case 'APPROVED':
|
||||
return 'green'
|
||||
return 'success' as const
|
||||
case 'REJECTED':
|
||||
return 'red'
|
||||
return 'error' as const
|
||||
case 'SIGNED':
|
||||
return 'primary'
|
||||
return 'primary' as const
|
||||
default:
|
||||
return 'gray'
|
||||
return 'neutral' as const
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user