mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 13:50:06 +03:00
Fix more build errors
This commit is contained in:
parent
fc40953bcc
commit
24db1d6c6d
1 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
import React, { useState } from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { RecoilRoot } from 'recoil';
|
||||
import ChatContainer from '../components/chat/ChatContainer';
|
||||
import { ChatMessage } from '../interfaces/chat-message.model';
|
||||
|
||||
|
@ -28,7 +29,7 @@ const AddMessagesChatExample = args => {
|
|||
const [chatMessages, setChatMessages] = useState<ChatMessage[]>(m);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<RecoilRoot>
|
||||
<button type="button" onClick={() => setChatMessages([...chatMessages, chatMessages[0]])}>
|
||||
Add message
|
||||
</button>
|
||||
|
@ -39,7 +40,7 @@ const AddMessagesChatExample = args => {
|
|||
isModerator={false}
|
||||
isMobile={false}
|
||||
/>
|
||||
</div>
|
||||
</RecoilRoot>
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -56,8 +57,3 @@ SingleMessage.args = {
|
|||
loading: false,
|
||||
messages: [messages[0]],
|
||||
};
|
||||
|
||||
export const Loading = Template.bind({});
|
||||
Loading.args = {
|
||||
loading: true,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue