mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-05 19:40:56 +02:00
Remove withCurrentPage
This commit is contained in:
parent
3035521b93
commit
7c64911b6b
1 changed files with 0 additions and 25 deletions
|
|
@ -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;
|
||||
Loading…
Reference in a new issue