Skip to content

Commit

Permalink
Merge pull request #17501 from Expensify/georgia-concierge-SVG
Browse files Browse the repository at this point in the history
Use local SVG for concierge icon
  • Loading branch information
MariaHCD authored Apr 18, 2023
2 parents e702c3a + 60f415d commit 4019be1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ const CONST = {
PDF_VIEWER_URL: '/pdf/web/viewer.html',
CLOUDFRONT_DOMAIN_REGEX: /^https:\/\/\w+\.cloudfront\.net/i,
EXPENSIFY_ICON_URL: `${CLOUDFRONT_URL}/images/favicon-2019.png`,
CONCIERGE_ICON_URL: `${CLOUDFRONT_URL}/images/icons/concierge_2022.png`,
UPWORK_URL: 'https://github.com/Expensify/App/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22',
GITHUB_URL: 'https://github.com/Expensify/App',
TERMS_URL: `${USE_EXPENSIFY_URL}/terms`,
Expand Down
3 changes: 2 additions & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ONYXKEYS from '../ONYXKEYS';
import CONST from '../CONST';
import * as ReportUtils from './ReportUtils';
import * as Localize from './Localize';
import * as Expensicons from '../components/Icon/Expensicons';
import Permissions from './Permissions';
import * as CollectionUtils from './CollectionUtils';
import Navigation from './Navigation/Navigation';
Expand Down Expand Up @@ -167,7 +168,7 @@ function getPersonalDetailsForLogins(logins, personalDetails) {
}

if (login === CONST.EMAIL.CONCIERGE) {
personalDetail.avatar = CONST.CONCIERGE_ICON_URL;
personalDetail.avatar = Expensicons.ConciergeAvatar;
}

personalDetailsForLogins[login] = personalDetail;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ function getDefaultWorkspaceAvatar(workspaceName) {
*/
function getOldDotDefaultAvatar(login = '') {
if (login === CONST.EMAIL.CONCIERGE) {
return CONST.CONCIERGE_ICON_URL;
return Expensicons.ConciergeAvatar;
}

// There are 8 possible old dot default avatars, so we choose which one this user has based
Expand Down Expand Up @@ -643,7 +643,7 @@ function getIcons(report, personalDetails, policies, defaultIcon = null) {
return [result];
}
if (isConciergeChatReport(report)) {
result.source = CONST.CONCIERGE_ICON_URL;
result.source = Expensicons.ConciergeAvatar;
return [result];
}
if (isArchivedRoom(report)) {
Expand Down

0 comments on commit 4019be1

Please sign in to comment.