Skip to content

Commit

Permalink
fix: fix pretty formatter comment movement
Browse files Browse the repository at this point in the history
  • Loading branch information
herleraja committed Apr 19, 2024
1 parent 0437978 commit fe34bab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/react/src/components/Table/Table.story.helpers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,10 @@ const convertUTCDateToLocalDate = (date) => {
const localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60 * 1000);
return localDate.toISOString().slice(0, 10);
};
// eslint-disable-next-line react/prop-types

export const getEditDataFunction =
(onDataChange) =>
// eslint-disable-next-line react/prop-types
({ value, columnId, rowId }) => {
const elementId = `${columnId}-${rowId}`;

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/hooks/useSizeObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ const useSizeObserver = ({ initialHeight = 0, initialWidth = 0, ref = undefined
return [{ height: initialHeight, width: initialWidth }, ref];
}

// eslint-disable-next-line react-hooks/rules-of-hooks
const {
height = initialHeight,
width = initialWidth,
ref: observerRef,
// eslint-disable-next-line react-hooks/rules-of-hooks
} = useResizeObserver({
ref,
});
Expand Down

0 comments on commit fe34bab

Please sign in to comment.