Skip to content

Commit

Permalink
Feat chat window (#143)
Browse files Browse the repository at this point in the history
* Renaming complete

* ChatWindow in test.tsx

* state docs updated
alamorre authored Jan 3, 2022
1 parent 7b0a90c commit 236207e
Showing 7 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ChatWindow/ChatFeed/MessageForm/stories.mdx
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ import { Props } from './props';
title="ChatWindow/ChatFeed/MessageForm"
component={MessageForm}
argTypes={{
myUsername: { table: { category: 'state' } },
onChange: { table: { category: 'hooks' } },
onSubmit: { table: { category: 'hooks' } },
renderMessageForm: { table: { category: 'render functions' } },
1 change: 1 addition & 0 deletions src/components/ChatWindow/ChatFeed/MessageList/stories.mdx
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import { messages, directMessageChat } from '../../../util/mocks';
title="ChatWindow/ChatFeed/MessageList"
component={MessageList}
argTypes={{
myUsername: { table: { category: 'state' } },
hasMoreMessages: { table: { category: 'state' } },
onMessageLoaderShow: { table: { category: 'hooks' } },
onMessageLoaderHide: { table: { category: 'hooks' } },
1 change: 1 addition & 0 deletions src/components/ChatWindow/ChatFeed/stories.mdx
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import { onePersonChat, messages } from '../../util/mocks';
title="ChatWindow/ChatFeed"
component={ChatFeed}
argTypes={{
myUsername: { table: { category: 'state' } },
isLoading: { table: { category: 'state' } },
hasMoreMessages: { table: { category: 'state' } },
onMessageLoaderShow: { table: { category: 'hooks' } },
10 changes: 10 additions & 0 deletions src/components/ChatWindow/ChatList/stories.mdx
Original file line number Diff line number Diff line change
@@ -8,6 +8,16 @@ import { chats } from '../../util/mocks';
title="ChatWindow/ChatList"
component={ChatList}
argTypes={{
activeChatId: { table: { category: 'state' } },
myUsername: { table: { category: 'state' } },
hasMoreChats: { table: { category: 'state' } },
isLoading: { table: { category: 'state' } },
onChatCardClick: { table: { category: 'hooks' } },
onChatFormSubmit: { table: { category: 'hooks' } },
onChatLoaderShow: { table: { category: 'hooks' } },
renderChatList: { table: { category: 'render functions' } },
renderChatForm: { table: { category: 'render functions' } },
renderChatCard: { table: { category: 'render functions' } },
style: { table: { category: 'styles' } },
loadingMoreChatsStyle: { table: { category: 'styles' } },
}}
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import { adam, bob, cam } from '../../../util/mocks';
title="ChatWindow/ChatSettings/Chat Avatars"
component={ChatAvatars}
argTypes={{
myUsername: { table: { category: 'state' } },
isDirectChat: { table: { category: 'state' } },
style: { table: { category: 'styles' } },
oneAvatarStyle: { table: { category: 'styles' } },
1 change: 1 addition & 0 deletions src/components/ChatWindow/ChatSettings/stories.mdx
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import { threePersonChat, adam as currentUser, bob } from '../../util/mocks';
title="ChatWindow/ChatSettings"
component={ChatSettings}
argTypes={{
myUsername: { table: { category: 'state' } },
isLoading: { table: { category: 'state' } },
onInvitePersonClick: { table: { category: 'hooks' } },
onRemovePersonClick: { table: { category: 'hooks' } },
2 changes: 2 additions & 0 deletions src/components/ChatWindow/stories.mdx
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@ import { adam, chats, messages } from '../util/mocks';
title="ChatWindow"
component={ChatWindow}
argTypes={{
activeChatId: { table: { category: 'state' } },
myUsername: { table: { category: 'state' } },
isChatListLoading: { table: { category: 'state' } },
isChatFeedLoading: { table: { category: 'state' } },
isChatSettingsLoading: { table: { category: 'state' } },

0 comments on commit 236207e

Please sign in to comment.