29 lines
1001 B
TypeScript
29 lines
1001 B
TypeScript
import { Col, Row } from "reactstrap";
|
|
import ValidationField from "../../../../Components/ValidationField/ValidationField";
|
|
import useFormatDataToSelect from "../../../../utils/useFormatDataToSelect";
|
|
|
|
const Form = ({isEdit}:{isEdit?:boolean}) => {
|
|
|
|
const typeOptions = [
|
|
{ id: "student", name: "student" },
|
|
{ id: "reseller", name: "reseller" },
|
|
{ id: "admin", name: "admin" },
|
|
]
|
|
const typeArray = useFormatDataToSelect(typeOptions)
|
|
|
|
return (
|
|
<Row className="w-100">
|
|
<Col>
|
|
<ValidationField type="Date" placeholder="activation_date" label="activation_date" name="activation_date" />
|
|
<ValidationField type="Date" placeholder="expiration_date" label="expiration_date" name="expiration_date" />
|
|
<ValidationField placeholder="student_id" label="student_id" name="student_id" />
|
|
</Col>
|
|
<Col>
|
|
<ValidationField placeholder="package_id" label="package_id" name="package_id" />
|
|
</Col>
|
|
</Row>
|
|
);
|
|
};
|
|
|
|
export default Form;
|