Skip to content

Commit

Permalink
Merge pull request #6888 from Expensify/OSBotify-cherry-pick-staging-…
Browse files Browse the repository at this point in the history
…6881
  • Loading branch information
OSBotify authored Dec 22, 2021
2 parents a4c116d + ae2b2aa commit 4a698dc
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 29 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001012300
versionName "1.1.23-0"
versionCode 1001012301
versionName "1.1.23-1"
}
splits {
abi {
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.1.23.0</string>
<string>1.1.23.1</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/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.1.23.0</string>
<string>1.1.23.1</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": "new.expensify",
"version": "1.1.23-0",
"version": "1.1.23-1",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
2 changes: 2 additions & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ const CONST = {
PLATFORM: {
IOS: 'ios',
ANDROID: 'android',
WEB: 'web',
DESKTOP: 'desktop',
},
KEYBOARD_SHORTCUT_MODIFIERS: {
CTRL: {
Expand Down
4 changes: 3 additions & 1 deletion src/libs/getPlatform/index.desktop.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import CONST from '../../CONST';

export default function getPlatform() {
return 'desktop';
return CONST.PLATFORM.DESKTOP;
}
4 changes: 3 additions & 1 deletion src/libs/getPlatform/index.website.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import CONST from '../../CONST';

export default function getPlatform() {
return 'web';
return CONST.PLATFORM.WEB;
}
15 changes: 15 additions & 0 deletions src/pages/settings/AboutPage/getPlatformSpecificMenuItems/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as KeyboardShortcuts from '../../../../libs/actions/KeyboardShortcuts';
import * as Expensicons from '../../../../components/Icon/Expensicons';

export default (isSmallScreenWidth) => {
if (isSmallScreenWidth) {
return [];
}
return [
{
translationKey: 'initialSettingsPage.aboutPage.viewKeyboardShortcuts',
icon: Expensicons.Keyboard,
action: KeyboardShortcuts.showKeyboardShortcutModal,
},
];
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default () => [];
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
import _ from 'underscore';
import React from 'react';
import {View, ScrollView} from 'react-native';
import HeaderWithCloseButton from '../../components/HeaderWithCloseButton';
import Navigation from '../../libs/Navigation/Navigation';
import * as KeyboardShortcuts from '../../libs/actions/KeyboardShortcuts';
import ROUTES from '../../ROUTES';
import styles from '../../styles/styles';
import ExpensifyText from '../../components/ExpensifyText';
import CONST from '../../CONST';
import * as Expensicons from '../../components/Icon/Expensicons';
import ScreenWrapper from '../../components/ScreenWrapper';
import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize';
import MenuItem from '../../components/MenuItem';
import Logo from '../../../assets/images/new-expensify.svg';
import {version} from '../../../package.json';
import * as Report from '../../libs/actions/Report';
import * as Link from '../../libs/actions/Link';
import HeaderWithCloseButton from '../../../components/HeaderWithCloseButton';
import Navigation from '../../../libs/Navigation/Navigation';
import ROUTES from '../../../ROUTES';
import styles from '../../../styles/styles';
import ExpensifyText from '../../../components/ExpensifyText';
import CONST from '../../../CONST';
import * as Expensicons from '../../../components/Icon/Expensicons';
import ScreenWrapper from '../../../components/ScreenWrapper';
import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize';
import withWindowDimensions, {windowDimensionsPropTypes} from '../../../components/withWindowDimensions';
import MenuItem from '../../../components/MenuItem';
import Logo from '../../../../assets/images/new-expensify.svg';
import {version} from '../../../../package.json';
import * as Report from '../../../libs/actions/Report';
import * as Link from '../../../libs/actions/Link';
import getPlatformSpecificMenuItems from './getPlatformSpecificMenuItems';
import compose from '../../../libs/compose';

const propTypes = {
...withLocalizePropTypes,
...windowDimensionsPropTypes,
};

const AboutPage = (props) => {
const platformSpecificMenuItems = getPlatformSpecificMenuItems(props.isSmallScreenWidth);

const menuItems = [
{
translationKey: 'initialSettingsPage.aboutPage.appDownloadLinks',
Expand All @@ -30,11 +35,7 @@ const AboutPage = (props) => {
Navigation.navigate(ROUTES.SETTINGS_APP_DOWNLOAD_LINKS);
},
},
{
translationKey: 'initialSettingsPage.aboutPage.viewKeyboardShortcuts',
icon: Expensicons.Keyboard,
action: KeyboardShortcuts.showKeyboardShortcutModal,
},
...platformSpecificMenuItems,
{
translationKey: 'initialSettingsPage.aboutPage.viewTheCode',
icon: Expensicons.Eye,
Expand Down Expand Up @@ -146,4 +147,7 @@ const AboutPage = (props) => {
AboutPage.propTypes = propTypes;
AboutPage.displayName = 'AboutPage';

export default withLocalize(AboutPage);
export default compose(
withLocalize,
withWindowDimensions,
)(AboutPage);

0 comments on commit 4a698dc

Please sign in to comment.