Skip to content

Commit

Permalink
Manually revert 10069
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Aug 22, 2022
1 parent dbd87e0 commit 4ea7f1e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {Keyboard, View} from 'react-native';
import lodashGet from 'lodash/get';
import _ from 'underscore';
import lodashFindLast from 'lodash/findLast';
import DrawerStatusContext from '@react-navigation/drawer/lib/module/utils/DrawerStatusContext';
import styles from '../../styles/styles';
import ScreenWrapper from '../../components/ScreenWrapper';
import HeaderView from './HeaderView';
Expand All @@ -27,7 +26,6 @@ import addViewportResizeListener from '../../libs/VisualViewport';
import {withNetwork} from '../../components/OnyxProvider';
import compose from '../../libs/compose';
import networkPropTypes from '../../components/networkPropTypes';
import withWindowDimensions, {windowDimensionsPropTypes} from '../../components/withWindowDimensions';

const propTypes = {
/** Navigation route context info provided by react navigation */
Expand Down Expand Up @@ -85,8 +83,6 @@ const propTypes = {

/** Information about the network */
network: networkPropTypes.isRequired,

...windowDimensionsPropTypes,
};

const defaultProps = {
Expand Down Expand Up @@ -200,10 +196,6 @@ class ReportScreen extends React.Component {
return null;
}

if (this.props.isSmallScreenWidth && this.context === 'open') {
return null;
}

// We let Free Plan default rooms to be shown in the App - it's the one exception to the beta, otherwise do not show policy rooms in product
if (!Permissions.canUseDefaultRooms(this.props.betas)
&& ReportUtils.isDefaultRoom(this.props.report)
Expand Down Expand Up @@ -277,12 +269,10 @@ class ReportScreen extends React.Component {
}
}

ReportScreen.contextType = DrawerStatusContext;
ReportScreen.propTypes = propTypes;
ReportScreen.defaultProps = defaultProps;

export default compose(
withWindowDimensions,
withNetwork(),
withOnyx({
isSidebarLoaded: {
Expand Down

0 comments on commit 4ea7f1e

Please sign in to comment.