2017-08-19 10:41:08 +09:00
|
|
|
import React from 'react';
|
2019-01-26 21:21:09 +09:00
|
|
|
import Form from 'react-bootstrap/lib/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-24 18:01:53 +09:00
|
|
|
const NumberComponent = ({ refFunction, inputProperties }) => (
|
|
|
|
<Components.FormItem {...inputProperties}>
|
|
|
|
<Form.Control {...inputProperties} ref={refFunction} type="number" />
|
|
|
|
</Components.FormItem>
|
|
|
|
);
|
2017-08-19 10:41:08 +09:00
|
|
|
|
2018-05-10 10:03:59 -04:00
|
|
|
registerComponent('FormComponentNumber', NumberComponent);
|