From 36661fdff9f8e407efaba306be938b57b1832e4a Mon Sep 17 00:00:00 2001 From: Birm Date: Fri, 31 May 2024 13:10:21 -0400 Subject: [PATCH] style for component fcns --- .../VisDataTableControl/VisDataTableControl.js | 4 +++- .../VisSortableItem/VisSortableItem.js | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/source/components/VisualTools/VisDataTable/VisDataTableControl/VisDataTableControl.js b/source/components/VisualTools/VisDataTable/VisDataTableControl/VisDataTableControl.js index e404929..eebc003 100644 --- a/source/components/VisualTools/VisDataTable/VisDataTableControl/VisDataTableControl.js +++ b/source/components/VisualTools/VisDataTable/VisDataTableControl/VisDataTableControl.js @@ -10,7 +10,9 @@ import VisSortableItem from './VisSortableItem/VisSortableItem'; import './VisDataTableControl.css'; -const SortableContainer = ({ children }) =>
{children}
; +function SortableContainer({ children }) { + return
{children}
; +} export default class VisDataTableControl extends PureComponent { constructor(props) { diff --git a/source/components/VisualTools/VisDataTable/VisDataTableControl/VisSortableItem/VisSortableItem.js b/source/components/VisualTools/VisDataTable/VisDataTableControl/VisSortableItem/VisSortableItem.js index b3a0e96..b393c1a 100644 --- a/source/components/VisualTools/VisDataTable/VisDataTableControl/VisSortableItem/VisSortableItem.js +++ b/source/components/VisualTools/VisDataTable/VisDataTableControl/VisSortableItem/VisSortableItem.js @@ -5,7 +5,7 @@ import { useDrag } from 'react-dnd'; import './VisSortableItem.css'; -const DragHandle = () => { +function DragHandle() { const [{ isDragging }, drag] = useDrag({ collect: (monitor) => ({ isDragging: !!monitor.isDragging(), @@ -17,9 +17,9 @@ const DragHandle = () => { ); -}; +} -const VisSortableItem = (props) => { +function VisSortableItem(props) { return (
@@ -37,6 +37,6 @@ const VisSortableItem = (props) => {
); -}; +} export default VisSortableItem;