Skip to content

Commit

Permalink
Changed messageInput params Case (#725)
Browse files Browse the repository at this point in the history
* fix: added disconnect for wallet

* fix: added autoConnect

* fix: changed onClick to onGetTokenClick

* fix: fixed errors
  • Loading branch information
mishramonalisha76 authored Sep 21, 2023
1 parent cf9e610 commit 1653126
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export const ChatViewComponent: React.FC<IChatViewComponentProps> = (
<MessageInput
onGetTokenClick={onGetTokenClick}
chatId={chatId}
File={file}
Emoji={emoji}
GIF={gif}
file={file}
emoji={emoji}
gif={gif}
isConnected={isConnected}
autoConnect = {autoConnect}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ interface IThemeProps {

export const MessageInput: React.FC<MessageInputProps> = ({
chatId,
Emoji = true,
GIF = true,
File = true,
emoji = true,
gif = true,
file = true,
isConnected = true,
autoConnect = false,
onGetTokenClick,
Expand Down Expand Up @@ -556,7 +556,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
(chatFeed && !chatFeed?.groupInformation)) && (
<>
<Section gap="8px" flex="1" position="static">
{Emoji && (
{emoji && (
<Div
width="25px"
cursor="pointer"
Expand Down Expand Up @@ -599,7 +599,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
/>
</Section>
<SendSection position="static">
{GIF && (
{gif && (
<Section
width="34px"
height="24px"
Expand Down Expand Up @@ -627,7 +627,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
</Section>
)}
<Section onClick={handleUploadFile}>
{!fileUploading && File && (
{!fileUploading && file && (
<>
<Section
width="17"
Expand Down
7 changes: 3 additions & 4 deletions packages/uiweb/src/lib/components/chat/exportedTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ export type GIFType = {

export interface MessageInputProps {
chatId: string;
Emoji?: boolean;
GIF?: boolean;
File?: boolean;
Image?: boolean;
emoji?: boolean;
gif?: boolean;
file?: boolean;
isConnected?: boolean;
autoConnect?:boolean;
onGetTokenClick?: () => void;
Expand Down

0 comments on commit 1653126

Please sign in to comment.