Repository navigation
Migrate Workspace Avatar usages #97465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
83ad5bc
ffd7019
19170b3
9794cf7
c3654da
011bdbb
7755697
f829a17
5af4243
9ffb29d
061d359
d8a6683
e3bd6fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,6 @@ import useThemeStyles from '@hooks/useThemeStyles'; | |
| import createDynamicRoute from '@libs/Navigation/helpers/dynamicRoutesUtils/createDynamicRoute'; | ||
| import Navigation from '@libs/Navigation/Navigation'; | ||
| import {canSendInvoice} from '@libs/PolicyUtils'; | ||
| import {getDefaultWorkspaceAvatar} from '@libs/ReportUtils'; | ||
|
|
||
| import CONST from '@src/CONST'; | ||
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
|
|
@@ -64,7 +63,7 @@ function InvoiceSenderField({selectedParticipants, isReadOnly, didConfirm, trans | |
| avatarID={senderWorkspace?.id} | ||
| shouldShowRightIcon={!isReadOnly && !!canUpdateSenderWorkspace} | ||
| title={senderWorkspace?.name} | ||
| icon={senderWorkspace?.avatarURL ? senderWorkspace.avatarURL : getDefaultWorkspaceAvatar(senderWorkspace?.name)} | ||
| icon={senderWorkspace?.avatarURL} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you elaborate on this change? Why do we need this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now |
||
| iconType={CONST.ICON_TYPE_WORKSPACE} | ||
| description={translate('workspace.common.workspace')} | ||
| label={translate('workspace.invoices.sendFrom')} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we correct to change the default size from
CONST.AVATAR_SIZE.DEFAULTtoCONST.AVATAR_SIZE.XXXX_LARGE?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On
main, oldDEFAULTdefault was dead code - every call site passedsize={CONST.AVATAR_SIZE.XXXX_LARGE}