Skip to content

Commit

Permalink
Merge pull request #2146 from Expensify/marcaaron-fixPropTypeWarnings
Browse files Browse the repository at this point in the history
[No QA] Fix various propType warnings
  • Loading branch information
Jag96 authored Mar 30, 2021
2 parents a192daf + 5554180 commit bbbe320
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/components/Tooltip/index.native.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import PropTypes from 'prop-types';

// We can't use the common component for the Tooltip as Web implementation uses DOM specific method to
// render the View which is not present on the Mobile.
import {propTypes, defaultProps} from './TooltipPropTypes';
const propTypes = {
children: PropTypes.element,
};

/**
* There is no native support for the Hover on the Mobile platform so we just return the enclosing childrens
Expand All @@ -10,6 +14,5 @@ import {propTypes, defaultProps} from './TooltipPropTypes';
const Tooltip = props => props.children;

Tooltip.propTypes = propTypes;
Tooltip.defaultProps = defaultProps;
Tooltip.displayName = 'Tooltip';
export default Tooltip;
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const propTypes = {
};

const defaultProps = {
currentlyViewedReportID: 0,
currentlyViewedReportID: '0',
};

const ReportScreen = (props) => {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/sidebar/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ const OptionRow = ({
avatarImageURLs={option.icons}
optionIsFocused={optionIsFocused}
size={mode === 'compact' ? 'small' : 'default'}
styles={hovered && !optionIsFocused && {
styles={(hovered && !optionIsFocused) ? {
secondAvatar: {
backgroundColor: themeColors.sidebarHover,
borderColor: themeColors.sidebarHover,
},
}}
} : undefined}
/>
)
}
Expand Down
1 change: 0 additions & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ const styles = {
color: themeColors.textReversed,
fontSize: variables.fontSizeSmall,
lineHeight: 16,
userSelect: 'none',
...whiteSpace.noWrap,
},

Expand Down

0 comments on commit bbbe320

Please sign in to comment.