Skip to content

Commit

Permalink
HotFix: Fixed mergeProps error
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous committed Mar 7, 2024
1 parent 2e950d4 commit 5413305
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/lib/dataview/DataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { SpinnerIcon } from '../icons/spinner';
import { ThLargeIcon } from '../icons/thlarge';
import { Paginator } from '../paginator/Paginator';
import { Ripple } from '../ripple/Ripple';
import { classNames, IconUtils, mergeProps, ObjectUtils } from '../utils/Utils';
import { classNames, IconUtils, ObjectUtils } from '../utils/Utils';
import { useMergeProps } from '../hooks/Hooks';
import { DataViewBase, DataViewLayoutOptionsBase } from './DataViewBase';

export const DataViewLayoutOptions = React.memo((inProps) => {
const mergeProps = useMergeProps();
const context = React.useContext(PrimeReactContext);
const props = DataViewLayoutOptionsBase.getProps(inProps, context);
const { ptm, cx } = DataViewLayoutOptionsBase.setMetaData({
Expand Down Expand Up @@ -76,6 +78,7 @@ export const DataViewItem = React.memo((props) => {

export const DataView = React.memo(
React.forwardRef((inProps, ref) => {
const mergeProps = useMergeProps();
const context = React.useContext(PrimeReactContext);
const props = DataViewBase.getProps(inProps, context);
const [firstState, setFirstState] = React.useState(props.first);
Expand Down

0 comments on commit 5413305

Please sign in to comment.