Move in progress apps temporarily
This commit is contained in:
parent
ba04aa108c
commit
6eaaf8e9be
360 changed files with 6171 additions and 55 deletions
|
|
@ -1,38 +0,0 @@
|
|||
// import dynamic from "next/dynamic";
|
||||
import { SimpleForm, Create, TextInput, required } from "react-admin";
|
||||
import { useSession } from "next-auth/react";
|
||||
import { validateE164Number } from "../../../lib/phone-numbers";
|
||||
|
||||
const WhatsappBotCreate = (props) => {
|
||||
// const MuiPhoneNumber = dynamic(() => import("material-ui-phone-number"), {
|
||||
// ssr: false,
|
||||
// });
|
||||
|
||||
const { data: session } = useSession();
|
||||
|
||||
return (
|
||||
<Create {...props} title="Create Whatsapp Bot" redirect="show">
|
||||
<SimpleForm>
|
||||
<TextInput
|
||||
source="userId"
|
||||
defaultValue={
|
||||
// @ts-expect-error: non-existent property
|
||||
session.user.id
|
||||
}
|
||||
/>
|
||||
<TextInput
|
||||
source="phoneNumber"
|
||||
validate={[validateE164Number, required()]}
|
||||
/>
|
||||
{/* <MuiPhoneNumber
|
||||
defaultCountry={"us"}
|
||||
fullWidth
|
||||
onChange={(e: any) => setFieldValue("phoneNumber", e)}
|
||||
/> */}
|
||||
<TextInput source="description" />
|
||||
</SimpleForm>
|
||||
</Create>
|
||||
);
|
||||
};
|
||||
|
||||
export default WhatsappBotCreate;
|
||||
Loading…
Add table
Add a link
Reference in a new issue