diff --git a/src/client/chat--message.jsx b/src/client/chat--message.jsx index 50f702c..dfa39f2 100644 --- a/src/client/chat--message.jsx +++ b/src/client/chat--message.jsx @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import ReactMarkdown from 'react-markdown'; -export default function PlayersChatMessageSpace(props) { +export default function ChatMessage(props) { const {message: {owner, message, timestamp}, isShort} = props; const ownerMap = { 1: 'cha0s', @@ -46,11 +46,11 @@ export default function PlayersChatMessageSpace(props) { ); } -PlayersChatMessageSpace.propTypes = { +ChatMessage.propTypes = { isShort: PropTypes.bool.isRequired, message: PropTypes.shape({ message: PropTypes.string, timestamp: PropTypes.number, - owner: PropTypes.string, + owner: PropTypes.number, }).isRequired, };