1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

Remove withCurrentPage

This commit is contained in:
Mark McDowall
2025-01-05 08:41:20 -08:00
parent 3035521b93
commit 7c64911b6b
@@ -1,25 +0,0 @@
import PropTypes from 'prop-types';
import React from 'react';
function withCurrentPage(WrappedComponent) {
function CurrentPage(props) {
const {
history
} = props;
return (
<WrappedComponent
{...props}
useCurrentPage={history.action === 'POP'}
/>
);
}
CurrentPage.propTypes = {
history: PropTypes.object.isRequired
};
return CurrentPage;
}
export default withCurrentPage;