diff --git a/ts/components/EmptyMessageView.tsx b/ts/components/EmptyMessageView.tsx index ed450a1d2..3029f2833 100644 --- a/ts/components/EmptyMessageView.tsx +++ b/ts/components/EmptyMessageView.tsx @@ -1,6 +1,7 @@ import { useSelector } from 'react-redux'; import styled from 'styled-components'; import { getLeftPaneConversationIdsCount } from '../state/selectors/conversations'; +import { getTheme } from '../state/selectors/theme'; import { isSignWithRecoveryPhrase } from '../util/storage'; import { Flex } from './basic/Flex'; import { Spacer2XL, SpacerXS } from './basic/Text'; @@ -46,9 +47,9 @@ const StyledHeading = styled(StyledP)` font-weight: 700; `; -const StyledSessionWelcome = styled(StyledP)` +const StyledSessionWelcome = styled(StyledP)<{ color: string }>` line-height: 1; - color: var(--primary-color); + color: ${props => props.color}; font-size: 32px; `; @@ -66,6 +67,7 @@ const StyledNoConversations = styled(StyledP)` `; export const EmptyMessageView = () => { + const theme = useSelector(getTheme); const conversationCount = useSelector(getLeftPaneConversationIdsCount); const isSignInWithRecoveryPhrase = isSignWithRecoveryPhrase(); @@ -86,7 +88,9 @@ export const EmptyMessageView = () => { {window.i18n('onboardingAccountCreated')} - + {window.i18n('onboardingBubbleWelcomeToSession')}