-
Notifications
You must be signed in to change notification settings - Fork 217
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
headerLeftContent in Swap #1752
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you! |
@@ -298,7 +298,8 @@ export type SwapReact = { | |||
onError?: (error: SwapError) => void; // An optional callback function that handles errors within the provider. | |||
onStatus?: (lifecycleStatus: LifecycleStatus) => void; // An optional callback function that exposes the component lifecycle state | |||
onSuccess?: (transactionReceipt: TransactionReceipt) => void; // An optional callback function that exposes the transaction receipt | |||
title?: string; // Title for the Swap component. (default: "Swap") | |||
title?: ReactNode; // Title for the Swap component. (default: "Swap") | |||
headerLeftContent?: ReactNode; // Header left content for the Swap component (eg. back button). |
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.
Why not just call this the backButton? Or make it into a back button sub component?
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 other elements are we expecting to be passed through here?
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.
that was the original change, but we made it more generic to be able to handle things like logos, tray-open/close-buttons, etc.
What changed? Why?
Notes to reviewers
How has it been tested?
locally, in playground