-
Notifications
You must be signed in to change notification settings - Fork 44
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
[BUMP SDK IN DAPP] - Fix the the modal close behaviour on click outside modal #1611
[BUMP SDK IN DAPP] - Fix the the modal close behaviour on click outside modal #1611
Conversation
All looks good. |
|
@abhishek-01k should we close the modal when disconnect the wallet in the dapp? because i think if we dont close it creating a group will give error. |
@@ -89,7 +89,7 @@ const ChatSection = ({ chatId, setChatId, loggedIn }) => { | |||
|
|||
{/* Render unlock profile here if user is not logged in and chat instance is loaded */} | |||
{userPushSDKInstance && userPushSDKInstance?.readmode() && chatId && ( | |||
<UnlockProfileWrapper type={UNLOCK_PROFILE_TYPE.BOTTOM_BAR} /> | |||
<UnlockProfileWrapper type={UNLOCK_PROFILE_TYPE.MODAL} /> |
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.
i still see it in the bottom bar, what does this change mean
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.
So, when you have chat Id in the url and then you reload when you have not saved PGP keys in storage. You will see a modal instead of Bottom Bar.
All looks good. |
In the package.json file:
In the ChatSection.tsx file:
These are the corrections needed in the provided files. |
@abhishek-01k This looks good to me. Please go ahead and make a alpha release for this and update this PR with the alpha release. |
In the In the However, in the All looks good. |
Pull Request Template
Description
Create Group Modal will not be closed when clicked outside.
Type of Change
Checklist
Frontend Guidelines
Build & Testing
Screenshots/Video with Explanation
Before: Explain the previous behavior
Create Group Modal in the Chats is not persistent. Once you open the modal and click away on the dapp (i.e, toggle the light mode and dark mode) so the modal goes away.
After: What's changed now
Once you open the modal and click away on the dapp (i.e, toggle the light mode and dark mode) so the modal goes away.
Additional Context
Review & Approvals
Notes
CreateGroupModal from @pushprotocol/uiweb
UserProfile from @pushprotocol/uiweb
ChatView from @pushprotocol/uiweb
Things that you need to test