2023-02-13 12:41:30 +00:00
|
|
|
import {
|
|
|
|
|
SimpleForm,
|
|
|
|
|
TextInput,
|
|
|
|
|
Create,
|
|
|
|
|
PasswordInput,
|
|
|
|
|
CreateProps,
|
|
|
|
|
} from "react-admin";
|
|
|
|
|
import { ProviderKindInput } from "./shared";
|
|
|
|
|
|
2023-03-15 12:17:43 +00:00
|
|
|
// import TextField from "@material-ui/core/TextField";
|
2023-02-13 12:41:30 +00:00
|
|
|
|
2023-03-15 12:17:43 +00:00
|
|
|
/* const TwilioCredentialsInput = () => (
|
2023-02-13 12:41:30 +00:00
|
|
|
<span>
|
|
|
|
|
<TextField name="accountSid" label="Account Sid" />
|
|
|
|
|
<TextField name="authToken" label="Auth Token" />
|
|
|
|
|
</span>
|
2023-03-15 12:17:43 +00:00
|
|
|
); */
|
2023-02-13 12:41:30 +00:00
|
|
|
|
2023-03-15 12:17:43 +00:00
|
|
|
const ProviderCreate = (props: CreateProps) => (
|
|
|
|
|
<Create {...props} title="Create Providers">
|
|
|
|
|
<SimpleForm>
|
|
|
|
|
<ProviderKindInput />
|
|
|
|
|
<TextInput source="name" />
|
|
|
|
|
<TextInput source="credentials.accountSid" />
|
|
|
|
|
<TextInput source="credentials.apiKeySid" />
|
|
|
|
|
<PasswordInput source="credentials.apiKeySecret" />
|
|
|
|
|
</SimpleForm>
|
|
|
|
|
</Create>
|
|
|
|
|
);
|
2023-02-13 12:41:30 +00:00
|
|
|
|
|
|
|
|
export default ProviderCreate;
|