feat(notifications: add app build error providerd

This commit is contained in:
Mauricio Siu
2024-07-16 01:11:45 -06:00
parent 1bf518f768
commit 191a6112ce
3 changed files with 222 additions and 35 deletions

View File

@@ -398,7 +398,19 @@ export const UpdateNotification = ({ notificationId }: Props) => {
<FormItem className="w-full">
<FormLabel>SMTP Port</FormLabel>
<FormControl>
<Input placeholder="587" {...field} />
<Input
placeholder="587"
{...field}
onChange={(e) => {
const value = e.target.value;
if (value) {
const port = Number.parseInt(value);
if (port > 0 && port < 65536) {
field.onChange(port);
}
}
}}
/>
</FormControl>
<FormMessage />