From 71b5a004e322381fd4cc755f83d6810d2747d7ae Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Mon, 30 Mar 2026 18:47:27 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20ajustes=20de=20formata=C3=A7=C3=A3o=20?= =?UTF-8?q?e=20configura=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .vscode/settings.json | 2 +- src/features/auth/components/login-form.tsx | 4 +- src/features/payers/actions.ts | 2 +- .../boleto-fields-section.tsx | 2 +- .../components/table/transactions-table.tsx | 212 +++++++++--------- .../navigation/sidebar/app-sidebar.tsx | 4 +- tsconfig.json | 17 +- 7 files changed, 120 insertions(+), 123 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 441f75c..923ca61 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,4 +29,4 @@ "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" } -} \ No newline at end of file +} diff --git a/src/features/auth/components/login-form.tsx b/src/features/auth/components/login-form.tsx index 525ccae..ef817b0 100644 --- a/src/features/auth/components/login-form.tsx +++ b/src/features/auth/components/login-form.tsx @@ -125,7 +125,9 @@ export function LoginForm({ className, ...props }: DivProps) { }); if (passkeyError) { - setError((passkeyError.message as string) || "Erro ao entrar com passkey."); + setError( + (passkeyError.message as string) || "Erro ao entrar com passkey.", + ); setLoadingPasskey(false); } } diff --git a/src/features/payers/actions.ts b/src/features/payers/actions.ts index ace4848..d2e6802 100644 --- a/src/features/payers/actions.ts +++ b/src/features/payers/actions.ts @@ -41,7 +41,7 @@ const baseSchema = z.object({ .string() .trim() .email("Informe um e-mail válido.") - .optional() + .nullish() .transform((value) => normalizeOptionalString(value)), status: statusEnum, note: noteSchema, diff --git a/src/features/transactions/components/dialogs/transaction-dialog/boleto-fields-section.tsx b/src/features/transactions/components/dialogs/transaction-dialog/boleto-fields-section.tsx index bcccb78..495ccea 100644 --- a/src/features/transactions/components/dialogs/transaction-dialog/boleto-fields-section.tsx +++ b/src/features/transactions/components/dialogs/transaction-dialog/boleto-fields-section.tsx @@ -27,7 +27,7 @@ export function BoletoFieldsSection({ /> {showPaymentDate ? ( -
+
{dueDateLabel} ) : null} - - - + + + + + {name} + + + {name} - - - - {name} - - + + + + {isDivided && ( + + + + + + Dividido entre pagadores + + + + + Dividido entre pagadores + + + )} + + {isLastInstallment ? ( + + + + Última parcela + Última parcela + + + Última parcela! + + ) : null} + + {installmentBadge ? ( + + {installmentBadge} + + ) : null} + + {isAnticipated && ( + + + + + Parcela antecipada + + + + Parcela antecipada + + + )} + + {!noteAsColumn && hasNote ? ( + + + + + Ver anotação + + + + {note} + + + ) : null} + + {hasAttachments ? ( + + + + + Possui anexos + + + Possui anexos + + ) : null} + - - {isDivided && ( - - - - - Dividido entre pagadores - - - - Dividido entre pagadores - - - )} - - {isLastInstallment ? ( - - - - Última parcela - Última parcela - - - Última parcela! - - ) : null} - - {installmentBadge ? ( - - {installmentBadge} - - ) : null} - - {isAnticipated && ( - - - - - Parcela antecipada - - - Parcela antecipada - - )} - - {!noteAsColumn && hasNote ? ( - - - - - Ver anotação - - - - {note} - - - ) : null} - - {hasAttachments ? ( - - - - - Possui anexos - - - Possui anexos - - ) : null} ); }, diff --git a/src/shared/components/navigation/sidebar/app-sidebar.tsx b/src/shared/components/navigation/sidebar/app-sidebar.tsx index da1e01d..aeb6be3 100644 --- a/src/shared/components/navigation/sidebar/app-sidebar.tsx +++ b/src/shared/components/navigation/sidebar/app-sidebar.tsx @@ -77,7 +77,5 @@ function LogoContent() { const { state } = useSidebar(); const isCollapsed = state === "collapsed"; - return ( - - ); + return ; } diff --git a/tsconfig.json b/tsconfig.json index d94afb6..47be581 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,11 +3,7 @@ "ignoreDeprecations": "6.0", "baseUrl": ".", "target": "ES2017", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -25,10 +21,7 @@ } ], "paths": { - "@/*": [ - "./src/*", - "./*" - ] + "@/*": ["./src/*", "./*"] } }, "include": [ @@ -42,7 +35,5 @@ ".next/types/**/*.ts", ".next/dev/types/**/*.ts" ], - "exclude": [ - "node_modules" - ] -} \ No newline at end of file + "exclude": ["node_modules"] +}