Skip to content

Commit

Permalink
extra HOc removed
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Jun 18, 2021
1 parent 215521a commit d3a1936
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/Popover/index.native.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import _ from 'underscore';
import React from 'react';
import {propTypes, defaultProps} from './PopoverPropTypes';
import {propTypes as popoverPropTypes, defaultProps} from './PopoverPropTypes';
import CONST from '../../CONST';
import Modal from '../Modal';
import withWindowDimensions from '../withWindowDimensions';
import {windowDimensionsPropTypes} from '../withWindowDimensions';

const propTypes = {
...(_.omit(popoverPropTypes, _.keys(windowDimensionsPropTypes))),
};

/*
* This is a convenience wrapper around the Modal component for a responsive Popover.
Expand All @@ -24,4 +29,4 @@ Popover.propTypes = propTypes;
Popover.defaultProps = defaultProps;
Popover.displayName = 'Popover';

export default withWindowDimensions(Popover);
export default Popover;

0 comments on commit d3a1936

Please sign in to comment.