Skip to content

Commit

Permalink
Merge pull request #50 from fga-eps-mds/137-fix-corrige-data-OS
Browse files Browse the repository at this point in the history
#137 FIX: Corrige data e cor da tabela de OS
  • Loading branch information
AlineLermen authored Jun 21, 2023
2 parents bf63171 + b411d37 commit 70b3648
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/constants/orderservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const OSStatusStyleMap = new Map<
],
[
'CONCLUDED',
{ color: colors.green[100], fontWeight: 'bold', fontSize: '16px' },
{ color: colors.green[700], fontWeight: 'bold', fontSize: '16px' },
],
['WARRANTY', { color: colors.red, fontWeight: 'bold', fontSize: '16px' }],
]);
Expand Down
12 changes: 6 additions & 6 deletions src/pages/order-service/OrderServiceControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ export interface Equipment {

export interface OrderServiceData {
id: string;
date: Date;
date: string;
description?: string;
authorId: string;
receiverName: string;
sender?: string;
equipmentSnapshot: any;
senderFunctionalNumber: string;
createdAt: Date;
updatedAt: Date;
createdAt: string;
updatedAt: string;
equipment: Equipment;
history: History;
receiverFunctionalNumber: string;
Expand Down Expand Up @@ -407,9 +407,9 @@ function OrderServiceTable() {
</Td>

<Td>
{new Date(orderService.date).toLocaleDateString(
'pt-BR'
)}
{new Date(
orderService.createdAt
).toLocaleDateString('pt-BR', { timeZone: 'UTC' })}
</Td>
<Td>
<button onClick={onOpenEditOrderService}>
Expand Down

0 comments on commit 70b3648

Please sign in to comment.