-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
948 passvideo chatprofile #957
Conversation
File: packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatProfile.tsx
File: packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatViewComponent.tsx
File: packages/uiweb/src/lib/components/chat/ChatProfile/AddWalletContent.tsx
File: packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx
File: packages/uiweb/src/lib/components/chat/ChatViewComponent/ChatViewComponent.tsx
File: packages/uiweb/src/lib/components/chat/CreateGroup/AddWallets.tsx
File: packages/uiweb/src/lib/components/chat/exportedTypes.ts
|
onSubmit() | ||
}} | ||
isLoading={isLoading} | ||
memberListCount={memberList?.length > 0} | ||
theme={theme} | ||
disabled={isLoading || groupMembers.length === 0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for making the create group button disable when the group is being created and to add a condition that there should be at least one more wallet address added here
@@ -20,7 +20,7 @@ const ChatViewComponentTest = () => { | |||
<ChatView | |||
onVerificationFail={() => console.log("BOIIII RETURNNNSSSSS")} | |||
chatId='0xf8250D363BD1F25f52F10C21188fe82c68C049c4' | |||
|
|||
Component={() => <div><a href="https://github.com" target="_blank">Test</a></div>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason the Component parameter in captalized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was actually giving an error that Property 'component' does not exist on type 'JSX.IntrinsicElements'
while using small letters and I think since it's a component it will be better to keep it capitalized but let me know what you think about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KlausMikhaelson let make the Component to some meaningful name and in small case, also give the type as HTMLDivElement.
@@ -127,6 +128,11 @@ export const ChatProfile: React.FC<IChatProfile> = ({ | |||
margin="0 20px 0 auto" | |||
alignSelf="center" | |||
> | |||
{(Component && !groupInfo) && ( | |||
<Section> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add dimensions for the section
In ChatProfile.tsx:
In ChatViewComponent.tsx:
In AddWalletContent.tsx:
In ChatProfile.tsx:
In ChatViewComponent.tsx:
In AddWallets.tsx:
In exportedTypes.ts:
All looks good. |
File: packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatProfile.tsx
File: packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatViewComponent.tsx
File: packages/uiweb/src/lib/components/chat/ChatProfile/AddWalletContent.tsx
File: packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx
File: packages/uiweb/src/lib/components/chat/ChatViewComponent/ChatViewComponent.tsx
File: packages/uiweb/src/lib/components/chat/CreateGroup/AddWallets.tsx
File: packages/uiweb/src/lib/components/chat/exportedTypes.ts
All looks good. |
Fixes Issue #948
Changes proposed
added an option in chat profile to pass a component so that features like video or other customizations can be implemented easily
Check List (Check all the applicable boxes)
Screenshots
Note to reviewers