Skip to content

Commit fa1d3a5

Browse files
committed
1 parent d4869bf commit fa1d3a5

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

client/js/templates/EntriesPage.jsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React, {
44
useEffect,
55
useMemo,
66
useState,
7-
forwardRef,
87
} from 'react';
98
import PropTypes from 'prop-types';
109
import { Link, useLocation, useParams } from 'react-router';
@@ -1255,16 +1254,14 @@ StateHolder.propTypes = {
12551254
unreadItemsCount: PropTypes.number.isRequired,
12561255
};
12571256

1258-
const StateHolderOuter = forwardRef(function StateHolderOuter(
1259-
{
1260-
configuration,
1261-
setNavExpanded,
1262-
navSourcesExpanded,
1263-
setGlobalUnreadCount,
1264-
unreadItemsCount,
1265-
},
1257+
export default function StateHolderOuter({
1258+
configuration,
1259+
setNavExpanded,
1260+
navSourcesExpanded,
1261+
setGlobalUnreadCount,
1262+
unreadItemsCount,
12661263
ref,
1267-
) {
1264+
}) {
12681265
const location = useLocation();
12691266
const navigate = useNavigate();
12701267
const params = useParams();
@@ -1282,14 +1279,13 @@ const StateHolderOuter = forwardRef(function StateHolderOuter(
12821279
unreadItemsCount={unreadItemsCount}
12831280
/>
12841281
);
1285-
});
1282+
}
12861283

12871284
StateHolderOuter.propTypes = {
1285+
ref: PropTypes.func.isRequired,
12881286
configuration: PropTypes.object.isRequired,
12891287
setNavExpanded: PropTypes.func.isRequired,
12901288
navSourcesExpanded: PropTypes.bool.isRequired,
12911289
setGlobalUnreadCount: PropTypes.func.isRequired,
12921290
unreadItemsCount: PropTypes.number.isRequired,
12931291
};
1294-
1295-
export default StateHolderOuter;

0 commit comments

Comments
 (0)