-
Notifications
You must be signed in to change notification settings - Fork 104
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
feat(frontend): add WithdrawAll component and route #409
Conversation
frontend/src/pages/spotnet/dashboard/withdraw-all/WithdrawAll.jsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/spotnet/dashboard/withdraw-all/WithdrawAll.jsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/spotnet/dashboard/withdraw-all/withdraw_all.css
Outdated
Show resolved
Hide resolved
frontend/src/pages/spotnet/dashboard/withdraw-all/WithdrawAll.jsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/spotnet/dashboard/withdraw-all/WithdrawAll.jsx
Outdated
Show resolved
Hide resolved
@whateverfw your review comments were addressed! |
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.
@1nonlypiece In general everything if fine, almost everything is fixed, thanks.
Please fix small issues in unresolved threads
frontend/src/pages/spotnet/dashboard/withdraw-all/WithdrawAll.jsx
Outdated
Show resolved
Hide resolved
@1nonlypiece Any updates? |
@djeck1432 will address it soon |
@1nonlypiece please sync with main |
Done @whateverfw |
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.
@1nonlypiece @djeck1432 lgtm
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.
Looks good to me
Feature: Withdraw-All Page Implementation
Overview
This PR introduces the implementation of the
Withdraw All
page, enabling users to close all positions and withdraw all tokens to their wallet. The page includes integration with the backend API and aligns the UI with the provided Figma design.Closes #405
Key Changes
WithdrawAll Component
WithdrawAll
component located atpages/spotnet/dashboard/withdraw-all/WithdrawAll.jsx
.Withdraw All
button with the backend endpointGET /api/withdraw-all
using thewallet_id
parameter.Routing
Withdraw All
page inApp.jsx
:UI Enhancements
withdraw_all.css
to align the design with the Figma specifications.Global Changes
globals.css
for consistent UI styling across the application.form.css
to address mismatches between the existing UI and the Figma design.Error Messaging
AlertHexagon
) to display user-friendly error messages.Testing
Withdraw All
button successfully interacts with the API and processes the response.Screenshots/Video
Attached is a video showcasing the new
Withdraw All
page UI and functionality.https://www.loom.com/share/ec97640df87c4d1e854e62e28fcab8b0?sid=852e6f8b-48e5-481d-a963-c27e730dfff9