diff --git a/packages/netlify-cms-ui-default/src/ListItemTopBar.js b/packages/netlify-cms-ui-default/src/ListItemTopBar.js
index 9c8cdd3f..2f7493bb 100644
--- a/packages/netlify-cms-ui-default/src/ListItemTopBar.js
+++ b/packages/netlify-cms-ui-default/src/ListItemTopBar.js
@@ -33,30 +33,31 @@ const DragIconContainer = styled(TopBarButtonSpan)`
cursor: move;
`;
-const ListItemTopBar = ({ className, collapsed, onCollapseToggle, onRemove, dragHandleHOC }) => {
- const DragHandle = dragHandleHOC(() => (
+const DragHandle = ({ dragHandleHOC }) => {
+ const Handle = dragHandleHOC(() => (
));
-
- return (
-
- {onCollapseToggle ? (
-
-
-
- ) : null}
- {dragHandleHOC ? : null}
- {onRemove ? (
-
-
-
- ) : null}
-
- );
+ return ;
};
+const ListItemTopBar = ({ className, collapsed, onCollapseToggle, onRemove, dragHandleHOC }) => (
+
+ {onCollapseToggle ? (
+
+
+
+ ) : null}
+ {dragHandleHOC ? : null}
+ {onRemove ? (
+
+
+
+ ) : null}
+
+);
+
const StyledListItemTopBar = styled(ListItemTopBar)`
display: flex;
justify-content: space-between;