From 2dba61ce1ddc6e6053acecaf63a7c331746a3361 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Fri, 30 Jul 2021 11:48:23 +1000 Subject: [PATCH] Adding styled component --- ts/components/ConversationListItem.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/ts/components/ConversationListItem.tsx b/ts/components/ConversationListItem.tsx index 58938d68c..eaa14b2a9 100644 --- a/ts/components/ConversationListItem.tsx +++ b/ts/components/ConversationListItem.tsx @@ -13,7 +13,7 @@ import { ConversationAvatar } from './session/usingClosedConversationDetails'; import { MemoConversationListItemContextMenu } from './session/menu/ConversationListItemContextMenu'; import { createPortal } from 'react-dom'; import { OutgoingMessageStatus } from './conversation/message/OutgoingMessageStatus'; -import { useTheme } from 'styled-components'; +import styled, { useTheme } from 'styled-components'; import { PubKey } from '../session/types'; import { LastMessageType, @@ -27,9 +27,19 @@ import { useDispatch, useSelector } from 'react-redux'; import { SectionType } from '../state/ducks/section'; import { getFocusedSection } from '../state/selectors/section'; import { getFirstUnreadMessageIdInConversation } from '../data/data'; +import { ConversationNotificationSettingType } from '../models/conversation'; // tslint:disable-next-line: no-empty-interface -export interface ConversationListItemProps extends ReduxConversationType {} +export interface ConversationListItemProps extends ReduxConversationType { } + +export const StyledConversationListItemIconWrapper = styled.div` + svg { + margin: 2px 2px; + } + + display: flex; + flex-direction: row; +`; type PropsHousekeeping = { style?: Object; @@ -95,7 +105,7 @@ const HeaderItem = (props: { profileName={profileName} /> - {pinIcon} + {pinIcon} {unreadCountDiv} {atSymbol} { @@ -282,7 +292,7 @@ const ConversationListItem = (props: Props) => { conversationId={conversationId} name={name} profileName={profileName} - /> + />