fix broken form validation on emails
This commit is contained in:
@@ -64,7 +64,7 @@ export const DeleteTeamMember: React.FC<{
|
||||
<DialogDescription>
|
||||
{self
|
||||
? "Are you sure you want to leave the team? This action cannot be undone."
|
||||
: 'Are you sure you want to remove"{teamUser.email}" from the team? This action cannot be undone.'}
|
||||
: `Are you sure you want to remove ${teamUser.email} from the team? This action cannot be undone.`}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="flex justify-end gap-4 mt-6">
|
||||
|
@@ -5,7 +5,7 @@ import { z } from "@hono/zod-openapi";
|
||||
*/
|
||||
export const emailSchema = z
|
||||
.object({
|
||||
to: z.string().email().or(z.array(z.string().email())),
|
||||
to: z.string().or(z.array(z.string())),
|
||||
from: z.string().email(),
|
||||
subject: z.string().min(1).optional().openapi({
|
||||
description: "Optional when templateId is provided",
|
||||
|
Reference in New Issue
Block a user