diff --git a/components/lib/dataview/DataView.js b/components/lib/dataview/DataView.js index dd71fb69e2..4e947d4cd1 100644 --- a/components/lib/dataview/DataView.js +++ b/components/lib/dataview/DataView.js @@ -6,8 +6,7 @@ import { SpinnerIcon } from '../icons/spinner'; import { ThLargeIcon } from '../icons/thlarge'; import { Paginator } from '../paginator/Paginator'; import { Ripple } from '../ripple/Ripple'; -import { classNames, IconUtils, ObjectUtils } from '../utils/Utils'; -import { mergeProps } from '../utils/Utils'; +import { classNames, IconUtils, mergeProps, ObjectUtils } from '../utils/Utils'; import { DataViewBase, DataViewLayoutOptionsBase } from './DataViewBase'; export const DataViewLayoutOptions = React.memo((inProps) => { @@ -77,7 +76,6 @@ 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);