-
Notifications
You must be signed in to change notification settings - Fork 51
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
Changes from 2 commits
ea1a3a8
4eea456
d2985ae
de355a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,12 +185,12 @@ export const AddWalletContent = ({ | |
<Section flex="1" alignSelf="center"> | ||
<ModalConfirmButton | ||
onClick={() => { | ||
// console.log(groupMembers); | ||
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 commentThe 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 commentThe 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 |
||
> | ||
{!isLoading && groupMembers ? (submitButtonTitle ? submitButtonTitle : 'Add To Group'): ''} | ||
{isLoading && <Spinner size="30" color="#fff" />} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ export const ChatProfile: React.FC<IChatProfile> = ({ | |
style, | ||
groupInfoModalBackground = MODAL_BACKGROUND_TYPE.OVERLAY, | ||
groupInfoModalPositionType = MODAL_POSITION_TYPE.GLOBAL, | ||
Component, | ||
}) => { | ||
const theme = useContext(ThemeContext); | ||
const { account, env } = useChatData(); | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. add dimensions for the section |
||
<Component /> | ||
</Section> | ||
)} | ||
{(groupInfo?.rules?.chat?.conditions || | ||
groupInfo?.rules?.entry?.conditions) && <TokenGatedSvg />} | ||
{!!groupInfo?.isPublic && ( | ||
|
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 itThere 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.