Browse Source

Action message component

pull/2032/head
Gabe Kangas 4 years ago
parent
commit
756ab368c1
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 4
      web/components/chat/ChatAction/ChatActionMessage.module.scss
  2. 13
      web/components/chat/ChatAction/ChatActionMessage.tsx

4
web/components/chat/ChatAction/ChatActionMessage.module.scss

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
.chatAction {
padding: 5px;
text-align: center;
}

13
web/components/chat/ChatAction/ChatActionMessage.tsx

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
import s from './ChatActionMessage.module.scss';
/* eslint-disable react/no-danger */
interface Props {
body: string;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function ChatActionMessage(props: Props) {
const { body } = props;
return <div dangerouslySetInnerHTML={{ __html: body }} className={s.chatAction} />;
}
Loading…
Cancel
Save