revises custom group to use vanilla group as a demo
This commit is contained in:
@@ -1,14 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { Group } from '../../../../../../../field-types';
|
||||||
|
|
||||||
const CustomGroup = ({ onChange, value }) => {
|
const CustomGroup = (props) => {
|
||||||
return (
|
return (
|
||||||
<input
|
<div className="custom-group">
|
||||||
className="custom-description-filter"
|
<Group {...props} />
|
||||||
type="text"
|
</div>
|
||||||
onChange={e => onChange(e.target.value)}
|
|
||||||
value={value}
|
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1 @@
|
|||||||
import Group from './src/client/components/forms/field-types/Group';
|
export { default as Group } from './src/client/components/forms/field-types/Group';
|
||||||
|
|
||||||
export default {
|
|
||||||
Group,
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user