refactor: replace TextWidget component with EmailField (#8047)

pull/8053/head
Sai Deepesh 2023-04-02 22:04:11 +05:30 committed by GitHub
parent 81b2e37efd
commit 283d5b4a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,8 @@ import type { Settings, Widgets, SelectWidgetProps } from "react-awesome-query-b
//@ts-ignore
import BasicConfig from "react-awesome-query-builder/lib/config/basic";
import { EmailField } from "@calcom/ui";
import widgetsComponents from "../widgets";
const {
@ -92,8 +94,7 @@ const widgets: Widgets & { [key in keyof Widgets]: Widgets[key] & { type: string
if (!props) {
return <div />;
}
// TODO: Use EmailField component for Routing Form Email field
return <TextWidget type="email" {...props} />;
return <EmailField type="email" {...props} />;
},
},
};