Skip to content

Commit

Permalink
Merge pull request #3343 from Expensify/main
Browse files Browse the repository at this point in the history
  • Loading branch information
OSBotify authored Jun 3, 2021
2 parents 90b8bd7 + e21d5fd commit a9f1bf8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001006108
versionName "1.0.61-8"
versionCode 1001006109
versionName "1.0.61-9"
}
splits {
abi {
Expand Down
2 changes: 1 addition & 1 deletion ios/ExpensifyCash/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0.61.8</string>
<string>1.0.61.9</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/ExpensifyCashTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.61.8</string>
<string>1.0.61.9</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expensify.cash",
"version": "1.0.61-8",
"version": "1.0.61-9",
"author": "Expensify, Inc.",
"homepage": "https://expensify.cash",
"description": "Expensify.cash is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
1 change: 1 addition & 0 deletions src/components/IOUConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ class IOUConfirmationList extends Component {
}]}
sections={this.getSections()}
disableArrowKeysActions
disableRowInteractivity
hideAdditionalOptionStates
forceTextUnreadStyle
canSelectMultipleOptions={this.props.hasMultipleParticipants}
Expand Down
5 changes: 5 additions & 0 deletions src/components/OptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const propTypes = {

/** Toggle between compact and default view of the option */
optionMode: PropTypes.oneOf(['compact', 'default']),

/** Whether to disable the interactivity of the list's option row(s) */
disableRowInteractivity: PropTypes.bool,
};

const defaultProps = {
Expand All @@ -94,6 +97,7 @@ const defaultProps = {
innerRef: null,
showTitleTooltip: false,
optionMode: undefined,
disableRowInteractivity: false,
};

class OptionsList extends Component {
Expand Down Expand Up @@ -170,6 +174,7 @@ class OptionsList extends Component {
showSelectedState={this.props.canSelectMultipleOptions}
hideAdditionalOptionStates={this.props.hideAdditionalOptionStates}
forceTextUnreadStyle={this.props.forceTextUnreadStyle}
disableRowInteractivity={this.props.disableRowInteractivity}
/>
);
}
Expand Down
8 changes: 7 additions & 1 deletion src/pages/home/sidebar/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ const propTypes = {
/** Toggle between compact and default view */
mode: PropTypes.oneOf(['compact', 'default']),

// Whether this option should be disabled
/** Whether this option should be disabled */
isDisabled: PropTypes.bool,

/** Whether to disable the interactivity of this row */
disableRowInteractivity: PropTypes.bool,

...withLocalizePropTypes,
};

Expand All @@ -74,6 +77,7 @@ const defaultProps = {
onSelectRow: null,
isDisabled: false,
optionIsFocused: false,
disableRowInteractivity: false,
};

const OptionRow = ({
Expand All @@ -89,6 +93,7 @@ const OptionRow = ({
showTitleTooltip,
isDisabled,
mode,
disableRowInteractivity,
toLocalPhone,
}) => {
const textStyle = optionIsFocused
Expand Down Expand Up @@ -139,6 +144,7 @@ const OptionRow = ({
{hovered => (
<TouchableOpacity
onPress={() => onSelectRow(option)}
disabled={disableRowInteractivity}
activeOpacity={0.8}
style={[
styles.flexRow,
Expand Down

0 comments on commit a9f1bf8

Please sign in to comment.