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"] +}