Skip to content

Commit

Permalink
Merge pull request #8581 from metehanozyurt/issue-8133
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored May 3, 2022
2 parents 4ed88b3 + 6f52136 commit 3fc95c6
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/components/AvatarWithImagePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ class AvatarWithImagePicker extends React.Component {
onItemSelected={() => this.setState({isMenuVisible: false})}
menuItems={this.createMenuItems(openPicker)}
anchorPosition={this.props.anchorPosition}
animationIn="fadeInDown"
animationOut="fadeOutUp"
/>
</>
)
Expand Down
2 changes: 0 additions & 2 deletions src/components/ButtonWithMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ class ButtonWithMenu extends PureComponent {
onClose={() => this.setMenuVisibility(false)}
onItemSelected={() => this.setMenuVisibility(false)}
anchorPosition={styles.createMenuPositionRightSidepane}
animationIn="fadeInUp"
animationOut="fadeOutDown"
headerText={this.props.menuHeaderText}
menuItems={_.map(this.props.options, item => ({
...item,
Expand Down
4 changes: 0 additions & 4 deletions src/components/Popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const Popover = (props) => {
popoverAnchorPosition={props.anchorPosition}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
animationIn={props.isSmallScreenWidth ? undefined : props.animationIn}
animationOut={props.isSmallScreenWidth ? undefined : props.animationOut}
animationInTiming={props.disableAnimation ? 1 : props.animationInTiming}
animationOutTiming={props.disableAnimation ? 1 : props.animationOutTiming}
shouldCloseOnOutsideClick
Expand All @@ -33,8 +31,6 @@ const Popover = (props) => {
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
fullscreen={props.isSmallScreenWidth ? true : props.fullscreen}
animationIn={props.isSmallScreenWidth ? undefined : props.animationIn}
animationOut={props.isSmallScreenWidth ? undefined : props.animationOut}
animationInTiming={props.disableAnimation && !props.isSmallScreenWidth ? 1 : props.animationInTiming}
animationOutTiming={props.disableAnimation && !props.isSmallScreenWidth ? 1 : props.animationOutTiming}
/>
Expand Down
3 changes: 3 additions & 0 deletions src/components/Popover/popoverPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const propTypes = {
const defaultProps = {
...(_.omit(defaultModalProps, ['type', 'popoverAnchorPosition'])),

animationIn: 'fadeIn',
animationOut: 'fadeOut',

// Anchor position is optional only because it is not relevant on mobile
anchorPosition: {},
disableAnimation: true,
Expand Down
2 changes: 0 additions & 2 deletions src/components/ThreeDotsMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ class ThreeDotsMenu extends Component {
isVisible={this.state.isPopupMenuVisible}
anchorPosition={this.props.anchorPosition}
onItemSelected={() => this.togglePopupMenu()}
animationIn="fadeInDown"
animationOut="fadeOutUp"
menuItems={this.props.menuItems}
/>
</>
Expand Down
2 changes: 0 additions & 2 deletions src/components/VideoChatButtonAndMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ class VideoChatButtonAndMenu extends Component {
left: this.state.videoChatIconPosition.x - 150,
top: this.state.videoChatIconPosition.y + 40,
}}
animationIn="fadeInDown"
animationOut="fadeOutUp"
>
{_.map(this.menuItemData, ({icon, text, onPress}) => (
<MenuItem
Expand Down
2 changes: 0 additions & 2 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ class ReportActionCompose extends React.Component {
onClose={() => this.setMenuVisibility(false)}
onItemSelected={() => this.setMenuVisibility(false)}
anchorPosition={styles.createMenuPositionReportActionCompose}
animationIn="fadeInUp"
animationOut="fadeOutDown"
menuItems={[
...(!hasExcludedIOUEmails
&& Permissions.canUseIOU(this.props.betas) ? [
Expand Down

0 comments on commit 3fc95c6

Please sign in to comment.