forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
571bc7f
commit bbda53a
Showing
14 changed files
with
72 additions
and
82 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import lodashFindLastIndex from 'lodash/findLastIndex'; | |
import lodashIntersection from 'lodash/intersection'; | ||
import lodashIsEqual from 'lodash/isEqual'; | ||
import Onyx, {OnyxCollection, OnyxEntry, OnyxUpdate} from 'react-native-onyx'; | ||
import {SvgProps} from 'react-native-svg'; | ||
import {ValueOf} from 'type-fest'; | ||
import * as Expensicons from '@components/Icon/Expensicons'; | ||
import * as defaultWorkspaceAvatars from '@components/Icon/WorkspaceDefaultAvatars'; | ||
|
@@ -22,6 +21,7 @@ import {Message, ReportActions} from '@src/types/onyx/ReportAction'; | |
import {Receipt, WaypointCollection} from '@src/types/onyx/Transaction'; | ||
import DeepValueOf from '@src/types/utils/DeepValueOf'; | ||
import {EmptyObject, isEmptyObject, isNotEmptyObject} from '@src/types/utils/EmptyObject'; | ||
import IconAsset from '@src/types/utils/IconAsset'; | ||
import * as CurrencyUtils from './CurrencyUtils'; | ||
import DateUtils from './DateUtils'; | ||
import isReportMessageAttachment from './isReportMessageAttachment'; | ||
|
@@ -1150,7 +1150,7 @@ function formatReportLastMessageText(lastMessageText: string, isModifiedExpenseM | |
/** | ||
* Helper method to return the default avatar associated with the given login | ||
*/ | ||
function getDefaultWorkspaceAvatar(workspaceName?: string): React.FC<SvgProps> { | ||
function getDefaultWorkspaceAvatar(workspaceName?: string): IconAsset { | ||
if (!workspaceName) { | ||
return defaultWorkspaceAvatars.WorkspaceBuilding; | ||
} | ||
|
@@ -1172,7 +1172,7 @@ function getDefaultWorkspaceAvatar(workspaceName?: string): React.FC<SvgProps> { | |
* @param {String} [workspaceName] | ||
Check failure on line 1172 in src/libs/ReportUtils.ts GitHub Actions / lint
|
||
* @returns {String} | ||
Check failure on line 1173 in src/libs/ReportUtils.ts GitHub Actions / lint
|
||
*/ | ||
function getDefaultWorkspaceAvatarTestID(workspaceName) { | ||
function getDefaultWorkspaceAvatarTestID(workspaceName: string): string { | ||
if (!workspaceName) { | ||
return defaultAvatarBuildingIconTestID; | ||
} | ||
|
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
Oops, something went wrong.