@@ -4,7 +4,6 @@ import React, {
44 useEffect ,
55 useMemo ,
66 useState ,
7- forwardRef ,
87} from 'react' ;
98import PropTypes from 'prop-types' ;
109import { 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
12871284StateHolderOuter . 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