diff --git a/src/app/atoms/avatar/Avatar.jsx b/src/app/atoms/avatar/Avatar.jsx index e0fd78e..0f55494 100644 --- a/src/app/atoms/avatar/Avatar.jsx +++ b/src/app/atoms/avatar/Avatar.jsx @@ -22,7 +22,7 @@ function Avatar({
{ children }
; + if (span) return { children }; + if (variant === 'h1') return{ children }
; } Text.defaultProps = { className: null, + style: null, variant: 'b1', weight: 'normal', primary: false, @@ -30,6 +31,7 @@ Text.defaultProps = { Text.propTypes = { className: PropTypes.string, + style: PropTypes.shape({}), variant: PropTypes.oneOf(['h1', 'h2', 's1', 'b1', 'b2', 'b3']), weight: PropTypes.oneOf(['light', 'normal', 'medium', 'bold']), primary: PropTypes.bool, diff --git a/src/app/molecules/message/Message.jsx b/src/app/molecules/message/Message.jsx index ad7038e..b9db3aa 100644 --- a/src/app/molecules/message/Message.jsx +++ b/src/app/molecules/message/Message.jsx @@ -3,7 +3,6 @@ import React, { useState, useEffect, useCallback, useRef } from 'react'; import PropTypes from 'prop-types'; import './Message.scss'; -import dateFormat from 'dateformat'; import { twemojify } from '../../../util/twemojify'; import initMatrix from '../../../client/initMatrix'; @@ -69,10 +68,16 @@ const MessageHeader = React.memo(({ userId, username, time, }) => (