From 743d2c030ad86ed47219c487fd94f7b22920e6c2 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 2 Oct 2023 17:59:26 +0100 Subject: [PATCH] Ran yarn format, yarn test, yarn build -minor issues fixed- forgotten save of EditForm.tsx --- src/components/admin/withdrawals/CreateForm.tsx | 2 +- src/components/admin/withdrawals/EditForm.tsx | 2 +- src/gql/transfer.d.ts | 4 ++-- src/gql/withdrawals.d.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/admin/withdrawals/CreateForm.tsx b/src/components/admin/withdrawals/CreateForm.tsx index 4c1ccb023..da0af9a8c 100644 --- a/src/components/admin/withdrawals/CreateForm.tsx +++ b/src/components/admin/withdrawals/CreateForm.tsx @@ -187,7 +187,7 @@ export default function CreateForm() { - + diff --git a/src/components/admin/withdrawals/EditForm.tsx b/src/components/admin/withdrawals/EditForm.tsx index 45cb82eb9..3c443d67c 100644 --- a/src/components/admin/withdrawals/EditForm.tsx +++ b/src/components/admin/withdrawals/EditForm.tsx @@ -105,7 +105,7 @@ export default function EditForm() { reason: values.reason, sourceVaultId: values.sourceVaultId, sourceCampaignId: values.sourceCampaignId, - targetDate: values.targetDate ? new Date(values.targetDate) : null, + targetDate: values.targetDate, bankAccountId: values.bankAccountId, documentId: values.documentId, approvedById: values.approvedById, diff --git a/src/gql/transfer.d.ts b/src/gql/transfer.d.ts index 551ab6475..ae365cf27 100644 --- a/src/gql/transfer.d.ts +++ b/src/gql/transfer.d.ts @@ -11,7 +11,7 @@ export type TransferInput = { amount: number reason: string documentId?: UUID | string | null - targetDate: Date | string + targetDate: Date | string approvedById?: string | null sourceCampaignId: string sourceVaultId: string @@ -25,7 +25,7 @@ export type TransferData = { amount: number | undefined reason: string | undefined documentId?: UUID | string | null - targetDate: Date | string + targetDate: Date | string approvedById?: UUID | string | null sourceCampaignId: UUID | string | undefined sourceVaultId: UUID | string | undefined diff --git a/src/gql/withdrawals.d.ts b/src/gql/withdrawals.d.ts index 396d02f32..198a58456 100644 --- a/src/gql/withdrawals.d.ts +++ b/src/gql/withdrawals.d.ts @@ -35,7 +35,7 @@ export type WithdrawalInput = { amountAvailable: number reason: string | undefined documentId?: UUID | undefined - targetDate: Date | string + targetDate: Date | string approvedById?: UUID | undefined bankAccountId?: UUID | undefined sourceCampaignId?: UUID | undefined