- added new fields;
- corrected route urls;
This commit is contained in:
@@ -4,7 +4,7 @@ import { ItemTypes } from '../ItemTypes';
|
||||
import uniqid from '../../../../helpers/uniqid';
|
||||
|
||||
|
||||
const BuilderElementItem = ({ dbId, name, label }) => {
|
||||
const BuilderElementItem = ({ dbId, name, label, description = '' }) => {
|
||||
const ref = useRef(null);
|
||||
|
||||
const [{ isDragging }, drag] = useDrag(() => ({
|
||||
@@ -28,7 +28,11 @@ const BuilderElementItem = ({ dbId, name, label }) => {
|
||||
drag(ref);
|
||||
|
||||
return (
|
||||
<div ref={ref} className="formBuilder__elementItem" style={{ opacity }}>
|
||||
<div
|
||||
ref={ref}
|
||||
title={description}
|
||||
className="formBuilder__elementItem"
|
||||
style={{ opacity }}>
|
||||
{label}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user