diff --git a/src/components/Message.tsx b/src/components/Message.tsx index 0ca0e9f..5c5aa87 100644 --- a/src/components/Message.tsx +++ b/src/components/Message.tsx @@ -3,7 +3,7 @@ import React, { FunctionComponent } from 'react'; import TimeAgo from 'react-timeago'; import buildFormatter from 'react-timeago/lib/formatters/buildFormatter'; import nowStrings from 'react-timeago/lib/language-strings/en'; -import styled from 'styled-components'; +import styled, { css } from 'styled-components'; import { colors } from '../shared/constants'; import { sendMainMessage } from '../shared/utils'; @@ -56,9 +56,7 @@ const Message: FunctionComponent = ({ data, instanceId }) => { sendMainMessage('focus-nodes', selectionData); }} > - {data.message.text && ( -
{data.message.text}
- )} + {data.message.text &&
{data.message.text}
}