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 UrlComponent = ({ refFunction, inputProperties, ...properties }) => (
|
|
|
|
<Components.FormItem>
|
|
|
|
<Form.Control ref={refFunction} {...inputProperties} type="url" />
|
|
|
|
</Components.FormItem>
|
|
|
|
);
|
2017-08-19 10:41:08 +09:00
|
|
|
|
2019-01-24 18:01:53 +09:00
|
|
|
registerComponent('FormComponentUrl', UrlComponent);
|