-
Notifications
You must be signed in to change notification settings - Fork 349
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
[Dashboard] Remove unnecessary chakra-ui Tabs in Listing sheet #5076
[Dashboard] Remove unnecessary chakra-ui Tabs in Listing sheet #5076
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5076 +/- ##
=======================================
Coverage 45.29% 45.29%
=======================================
Files 1059 1059
Lines 54728 54728
Branches 3954 3954
=======================================
Hits 24791 24791
Misses 29246 29246
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
{ | ||
title: "Cancel Listing", | ||
isDisabled: !isOwner, |
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.
what happens to this second tab?
ffb0218
to
1de77eb
Compare
1de77eb
to
a0db8a0
Compare
a0db8a0
to
623543e
Compare
Merge activity
|
Remove unnecessary Tabs, just put the button at the bottom, since there's ever been only 1 tab anyway ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/VtULqGKSp33n0VHOzNJK/53a75b30-20b2-471c-9566-4b022a96b616.png) <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the marketplace components by removing unused files and consolidating the listing cancellation functionality into a single component, `CancelTab`. It also enhances the `ListingDrawer` component with improved UI elements for displaying asset information. ### Detailed summary - Deleted `CancelDirectListing.tsx` and `CancelEnglishAuction.tsx`. - Introduced `CancelTab` for handling cancellation of listings and auctions. - Updated `ListingDrawer` to use `CancelTab`. - Replaced `useTxNotifications` with `toast` for transaction feedback. - Added `CopyAddressButton` and `CopyTextButton` for better user interaction. - Refactored asset details display in `ListingDrawer` for improved readability. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
623543e
to
1cd11a8
Compare
Remove unnecessary Tabs, just put the button at the bottom, since there's ever been only 1 tab anyway
PR-Codex overview
This PR focuses on refactoring the marketplace components in the application by removing unused components, consolidating functionality, and improving the user interface for listing details and cancellations.
Detailed summary
CancelDirectListing.tsx
andCancelEnglishAuction.tsx
.MarketplaceTable
to removetype
prop.CancelTab
to usetoast
for notifications.CancelTab
.ListingDrawer
to utilizeCopyAddressButton
andCopyTextButton
.ListingDrawer
, simplifying the layout.