-
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 #17741 from Expensify/OSBotify-cherry-pick-staging…
…-17739 🍒 Cherry pick PR #17739 to staging 🍒
- Loading branch information
Showing
10 changed files
with
44 additions
and
12 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
17 changes: 17 additions & 0 deletions
17
src/pages/home/report/ContextMenu/ContextMenuUtils/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,17 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
|
||
/** | ||
* The popover description will be an empty string on anything but mobile web | ||
* because we show link in tooltip instead of popover on web | ||
* | ||
* @param {String} selection | ||
* @param {Boolean} isSmallScreenWidth | ||
* @returns {String} | ||
*/ | ||
function getPopoverDescription(selection, isSmallScreenWidth) { | ||
return isSmallScreenWidth ? selection : ''; | ||
} | ||
|
||
export { | ||
getPopoverDescription, | ||
}; |
15 changes: 15 additions & 0 deletions
15
src/pages/home/report/ContextMenu/ContextMenuUtils/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,15 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
|
||
/** | ||
* Always show popover description on native platforms | ||
* | ||
* @param {String} selection | ||
* @returns {String} | ||
*/ | ||
function getPopoverDescription(selection) { | ||
return selection; | ||
} | ||
|
||
export { | ||
getPopoverDescription, | ||
}; |
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