Add chat system message component. For #1998
This commit is contained in:
parent
2c8621c873
commit
f4fb7a1d41
@ -1,11 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable react/no-unused-prop-types */
|
||||
import { ChatMessage } from '../../interfaces/chat-message.model';
|
||||
|
||||
interface Props {
|
||||
message: ChatMessage;
|
||||
}
|
||||
|
||||
export default function ChatSystemMessage(props: Props) {
|
||||
return <div>Component goes here</div>;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
@import 'styles/mixins.scss';
|
||||
|
||||
.chatSystemMessage {
|
||||
background-color: var(--theme-unknown-2);
|
||||
margin: 5px;
|
||||
border-radius: 15px;
|
||||
border-color: rgba(0, 0, 0, 0.3);
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
padding: 10px 10px;
|
||||
max-width: 400px;
|
||||
@include flexCenter;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import s from './ChatSystemMessage.module.scss';
|
||||
|
||||
interface Props {
|
||||
message: string;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export default function ChatSystemMessage({ message }: Props) {
|
||||
return <div className={s.chatSystemMessage}>{message}</div>;
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import ChatSystemMessage from '../components/chat/ChatSystemMessage';
|
||||
import ChatSystemMessage from '../components/chat/ChatSystemMessage/ChatSystemMessage';
|
||||
import Mock from './assets/mocks/chatmessage-system.png';
|
||||
|
||||
export default {
|
||||
@ -23,3 +23,6 @@ const Template: ComponentStory<typeof ChatSystemMessage> = args => <ChatSystemMe
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export const Basic = Template.bind({});
|
||||
Basic.args = {
|
||||
message: 'This is a system message.',
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user