-
Notifications
You must be signed in to change notification settings - Fork 499
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
Dapps modals #2490
base: main
Are you sure you want to change the base?
Dapps modals #2490
Conversation
Hi @varunguleriaCodes All we need to change in this task is to open /apps page (with a given dapp modal opened) instead of dapp link (only for external dapps). |
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.
please use an existing page and component
Hi @isstuev , got it working on suggested changes |
Hi @isstuev implemented the suggested changes. |
ui/marketplace/useMarketplace.tsx
Outdated
if (selectedAppId) { | ||
setSelectedAppId(selectedAppId); | ||
setIsAppInfoModalOpen(true); | ||
const newQuery = { ...router.query }; |
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.
please use frontend/lib/router/removeQueryParam.ts
@@ -1,5 +1,6 @@ | |||
import { Image, Flex, Text, useColorModeValue } from '@chakra-ui/react'; |
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.
We also have Search Results page where apps can also be displayed, I suppose we need to implement the same logic there
frontend/ui/searchResults/SearchResultTableItem.tsx
frontend/ui/searchResults/SearchResultListItem.tsx
Hi @isstuev , I have added the changes, also changed useEffect in rating components, as when I was redirecting in a new tab to /apps this error showed "maximum update depth error reached" |
@varunguleriaCodes Our tests are failing because the SearchBar component now relies on the router implementation. Can you pass the router mock here, similar to other instances (example)? That should fix the tests. |
Hi @tom2drum ,Done |
Description and Related Issue(s)
This is a pr for #2454
Proposed Changes
Added a popup for an external dapp as specified in #2454
Additional Information
[Include any additional information, context, or screenshots that may be helpful for reviewers.]
Pc View
Mobile View
Checklist for PR author