mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
chat story controls (#2181)
* chat story controls * Prettified Code! Co-authored-by: juliana-mol <juliana-mol@users.noreply.github.com>
This commit is contained in:
parent
6cafc9697e
commit
9f2aa66527
@ -34,12 +34,7 @@ const AddMessagesChatExample = args => {
|
||||
<button type="button" onClick={() => setChatMessages([...chatMessages, chatMessages[0]])}>
|
||||
Add message
|
||||
</button>
|
||||
<ChatContainer
|
||||
messages={chatMessages}
|
||||
usernameToHighlight="testuser"
|
||||
chatUserId="testuser"
|
||||
isModerator={false}
|
||||
/>
|
||||
<ChatContainer {...args} />
|
||||
</div>
|
||||
</RecoilRoot>
|
||||
);
|
||||
@ -51,10 +46,18 @@ export const Example = Template.bind({});
|
||||
Example.args = {
|
||||
loading: false,
|
||||
messages,
|
||||
usernameToHighlight: 'testuser',
|
||||
chatUserId: 'testuser',
|
||||
isModerator: true,
|
||||
showInput: true,
|
||||
};
|
||||
|
||||
export const SingleMessage = Template.bind({});
|
||||
SingleMessage.args = {
|
||||
loading: false,
|
||||
messages: [messages[0]],
|
||||
usernameToHighlight: 'testuser',
|
||||
chatUserId: 'testuser',
|
||||
isModerator: true,
|
||||
showInput: true,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user