mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix chat message story
This commit is contained in:
parent
6edfe81ccb
commit
b8a108ba03
@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { RecoilRoot } from 'recoil';
|
||||
import ChatUserMessage from './index';
|
||||
import { ChatMessage } from '../../../interfaces/chat-message.model';
|
||||
import Mock from '../../../stories/assets/mocks/chatmessage-user.png';
|
||||
@ -21,7 +22,11 @@ export default {
|
||||
},
|
||||
} as ComponentMeta<typeof ChatUserMessage>;
|
||||
|
||||
const Template: ComponentStory<typeof ChatUserMessage> = args => <ChatUserMessage {...args} />;
|
||||
const Template: ComponentStory<typeof ChatUserMessage> = args => (
|
||||
<RecoilRoot>
|
||||
<ChatUserMessage {...args} />
|
||||
</RecoilRoot>
|
||||
);
|
||||
|
||||
const standardMessage: ChatMessage = JSON.parse(`{
|
||||
"type": "CHAT",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user