-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6881 from akshayasalvi/hide-keyboard-shortcuts-menu
(cherry picked from commit c218d61)
- Loading branch information
1 parent
ddf2a69
commit ae2b2aa
Showing
6 changed files
with
49 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
src/pages/settings/AboutPage/getPlatformSpecificMenuItems/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
]; | ||
}; |
1 change: 1 addition & 0 deletions
1
src/pages/settings/AboutPage/getPlatformSpecificMenuItems/index.native.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default () => []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters