Onboarding story
This commit is contained in:
parent
94f318ea08
commit
19a42ed719
42 changed files with 725 additions and 143 deletions
|
@ -13,6 +13,7 @@ import type { BadgeType } from '../../badges/types';
|
|||
import type { LocalizerType, ThemeType } from '../../types/Util';
|
||||
import { ContactName } from '../conversation/ContactName';
|
||||
import { About } from '../conversation/About';
|
||||
import { isSignalConversation } from '../../util/isSignalConversation';
|
||||
|
||||
export type ContactListItemConversationType = Pick<
|
||||
ConversationType,
|
||||
|
@ -31,6 +32,7 @@ export type ContactListItemConversationType = Pick<
|
|||
| 'unblurredAvatarPath'
|
||||
| 'username'
|
||||
| 'e164'
|
||||
| 'uuid'
|
||||
>;
|
||||
|
||||
type PropsDataType = ContactListItemConversationType & {
|
||||
|
@ -63,13 +65,18 @@ export const ContactListItem: FunctionComponent<PropsType> = React.memo(
|
|||
title,
|
||||
type,
|
||||
unblurredAvatarPath,
|
||||
uuid,
|
||||
}) {
|
||||
const headerName = isMe ? (
|
||||
<span className={HEADER_CONTACT_NAME_CLASS_NAME}>
|
||||
{i18n('noteToSelf')}
|
||||
</span>
|
||||
) : (
|
||||
<ContactName module={HEADER_CONTACT_NAME_CLASS_NAME} title={title} />
|
||||
<ContactName
|
||||
isSignalConversation={isSignalConversation({ id, uuid })}
|
||||
module={HEADER_CONTACT_NAME_CLASS_NAME}
|
||||
title={title}
|
||||
/>
|
||||
);
|
||||
|
||||
const messageText =
|
||||
|
|
|
@ -18,6 +18,7 @@ import { TypingAnimation } from '../conversation/TypingAnimation';
|
|||
import type { LocalizerType, ThemeType } from '../../types/Util';
|
||||
import type { ConversationType } from '../../state/ducks/conversations';
|
||||
import type { BadgeType } from '../../badges/types';
|
||||
import { isSignalConversation } from '../../util/isSignalConversation';
|
||||
|
||||
const MESSAGE_STATUS_ICON_CLASS_NAME = `${MESSAGE_TEXT_CLASS_NAME}__status-icon`;
|
||||
|
||||
|
@ -58,6 +59,7 @@ export type PropsData = Pick<
|
|||
| 'typingContactId'
|
||||
| 'unblurredAvatarPath'
|
||||
| 'unreadCount'
|
||||
| 'uuid'
|
||||
> & {
|
||||
badge?: BadgeType;
|
||||
};
|
||||
|
@ -96,6 +98,7 @@ export const ConversationListItem: FunctionComponent<Props> = React.memo(
|
|||
typingContactId,
|
||||
unblurredAvatarPath,
|
||||
unreadCount,
|
||||
uuid,
|
||||
}) {
|
||||
const isMuted = Boolean(muteExpiresAt && Date.now() < muteExpiresAt);
|
||||
const headerName = (
|
||||
|
@ -105,7 +108,11 @@ export const ConversationListItem: FunctionComponent<Props> = React.memo(
|
|||
{i18n('noteToSelf')}
|
||||
</span>
|
||||
) : (
|
||||
<ContactName module={HEADER_CONTACT_NAME_CLASS_NAME} title={title} />
|
||||
<ContactName
|
||||
module={HEADER_CONTACT_NAME_CLASS_NAME}
|
||||
isSignalConversation={isSignalConversation({ id, uuid })}
|
||||
title={title}
|
||||
/>
|
||||
)}
|
||||
{isMuted && <div className={`${HEADER_NAME_CLASS_NAME}__mute-icon`} />}
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue