Skip to content

Commit

Permalink
fix: Merge branch 'alpha' into alpha-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Sep 20, 2023
2 parents a356f4b + cf9e610 commit a3b4ead
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ChatViewComponentTest = () => {
<div>
<h2>Chat UI Test page</h2>
<ChatViewComponentCard>
<ChatViewComponent onClick={() => console.log("BOIIII RETURNNNSSSSS")} chatId='b8e068e02fe12d7136bc2f24408835573f30c6fbf0b65ea26ab4c7055a2c85f1' limit={10} isConnected={true} autoConnect={true}/>
<ChatViewComponent onGetTokenClick={() => console.log("BOIIII RETURNNNSSSSS")} chatId='b8e068e02fe12d7136bc2f24408835573f30c6fbf0b65ea26ab4c7055a2c85f1' limit={10} isConnected={true} autoConnect={true}/>
</ChatViewComponentCard>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ChatViewComponent: React.FC<IChatViewComponentProps> = (
gif = true,
isConnected = true,
autoConnect = false,
onClick,
onGetTokenClick,
} = options || {};

const { env, signer, account, pgpPrivateKey } = useChatData();
Expand Down Expand Up @@ -87,7 +87,7 @@ export const ChatViewComponent: React.FC<IChatViewComponentProps> = (
{(messageInput && (!!signer || (!!account && !!pgpPrivateKey) || isConnected )) && (
<Section flex="0 1 auto">
<MessageInput
onClick={onClick}
onGetTokenClick={onGetTokenClick}
chatId={chatId}
File={file}
Emoji={emoji}
Expand Down
2 changes: 1 addition & 1 deletion packages/uiweb/src/lib/components/chat/exportedTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IChatViewComponentProps {
file?: boolean;
isConnected?: boolean;
autoConnect?:boolean;
onClick?: () => void;
onGetTokenClick?: () => void;
}

export interface IChatProfile {
Expand Down

0 comments on commit a3b4ead

Please sign in to comment.