diff --git a/stylesheets/components/ContactModal.scss b/stylesheets/components/ContactModal.scss index 1aaa2b7673e..7ccc8093102 100644 --- a/stylesheets/components/ContactModal.scss +++ b/stylesheets/components/ContactModal.scss @@ -143,4 +143,23 @@ ); } } + + &__official-badge { + background: url('../images/icons/v2/official-20.svg') no-repeat center; + display: inline-block; + height: 18px; + margin-left: 4px; + margin-bottom: -4px; + width: 18px; + } + + &__official-badge__large { + background: url('../images/icons/v2/official-20.svg') no-repeat center; + display: inline-block; + height: 18px; + margin-left: 9px; + margin-bottom: -2px; + width: 18px; + scale: 1.3; + } } diff --git a/stylesheets/components/StoryListItem.scss b/stylesheets/components/StoryListItem.scss index 02e36b0e193..fe873d388ca 100644 --- a/stylesheets/components/StoryListItem.scss +++ b/stylesheets/components/StoryListItem.scss @@ -180,12 +180,4 @@ width: 12px; @include color-svg('../images/icons/v2/chevron-right-20.svg', $color-white); } - - &__signal-official { - background: url('../images/icons/v2/official-20.svg') no-repeat center; - display: inline-block; - height: 16px; - margin-left: 6px; - width: 16px; - } } diff --git a/ts/components/conversation/ContactName.tsx b/ts/components/conversation/ContactName.tsx index ee1dc8e5515..8c9c7055fd0 100644 --- a/ts/components/conversation/ContactName.tsx +++ b/ts/components/conversation/ContactName.tsx @@ -12,6 +12,7 @@ export type PropsType = { contactNameColor?: ContactNameColorType; firstName?: string; isSignalConversation?: boolean; + isMe?: boolean; module?: string; preferFirstName?: boolean; title: string; @@ -21,6 +22,7 @@ export function ContactName({ contactNameColor, firstName, isSignalConversation, + isMe, module, preferFirstName, title, @@ -43,8 +45,8 @@ export function ContactName({ dir="auto" > - {isSignalConversation && ( - + {(isSignalConversation || isMe) && ( + )} ); diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx index 2a6ee7a51c3..7e702fae7aa 100644 --- a/ts/components/conversation/ConversationHeader.tsx +++ b/ts/components/conversation/ConversationHeader.tsx @@ -177,6 +177,7 @@ export class ConversationHeader extends React.Component { return (
{i18n('noteToSelf')} +
); } diff --git a/ts/components/conversation/ConversationHero.tsx b/ts/components/conversation/ConversationHero.tsx index 2d5ee033bd4..54df187dc6e 100644 --- a/ts/components/conversation/ConversationHero.tsx +++ b/ts/components/conversation/ConversationHero.tsx @@ -195,6 +195,7 @@ export function ConversationHero({ title={title} /> )} + {isMe && ()} {about && !isMe && (
diff --git a/ts/components/conversation/conversation-details/ConversationDetailsHeader.tsx b/ts/components/conversation/conversation-details/ConversationDetailsHeader.tsx index 337208c6b69..647b4ffea95 100644 --- a/ts/components/conversation/conversation-details/ConversationDetailsHeader.tsx +++ b/ts/components/conversation/conversation-details/ConversationDetailsHeader.tsx @@ -107,6 +107,7 @@ export function ConversationDetailsHeader({
+ {isMe && ()}
); diff --git a/ts/components/conversationList/ContactCheckbox.tsx b/ts/components/conversationList/ContactCheckbox.tsx index 053a1a2b17a..7ced8a39b83 100644 --- a/ts/components/conversationList/ContactCheckbox.tsx +++ b/ts/components/conversationList/ContactCheckbox.tsx @@ -76,9 +76,10 @@ export const ContactCheckbox: FunctionComponent = React.memo( const disabled = Boolean(disabledReason); const headerName = isMe ? ( - - {i18n('noteToSelf')} - + ) : ( ); diff --git a/ts/components/conversationList/ContactListItem.tsx b/ts/components/conversationList/ContactListItem.tsx index 4d5490164b9..39db08ede2d 100644 --- a/ts/components/conversationList/ContactListItem.tsx +++ b/ts/components/conversationList/ContactListItem.tsx @@ -68,9 +68,11 @@ export const ContactListItem: FunctionComponent = React.memo( uuid, }) { const headerName = isMe ? ( - - {i18n('noteToSelf')} - + ) : ( = React.memo( const headerName = ( <> {isMe ? ( - - {i18n('noteToSelf')} - + ) : (