2017-08-19 10:41:08 +09:00
|
|
|
import React from 'react';
|
2019-01-30 17:21:20 +01:00
|
|
|
import Form from 'react-bootstrap/Form';
|
2019-01-24 18:01:53 +09:00
|
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
2017-08-19 10:41:08 +09:00
|
|
|
|
2019-01-27 09:48:45 +09:00
|
|
|
const Default = ({ refFunction, inputProperties, itemProperties }) => (
|
|
|
|
<Components.FormItem {...inputProperties} {...itemProperties}>
|
2019-01-24 18:01:53 +09:00
|
|
|
<Form.Control {...inputProperties} ref={refFunction} type="text" />
|
|
|
|
</Components.FormItem>
|
|
|
|
);
|
2017-08-19 10:41:08 +09:00
|
|
|
|
2019-01-24 18:01:53 +09:00
|
|
|
registerComponent('FormComponentDefault', Default);
|
|
|
|
registerComponent('FormComponentText', Default);
|