-
Notifications
You must be signed in to change notification settings - Fork 0
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
Will/deeplink-bridge #208
base: main
Are you sure you want to change the base?
Will/deeplink-bridge #208
Conversation
Deploying lockstacks with Cloudflare Pages
|
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.
LGTM bar one comment
|
||
const leatherDetected = window.LeatherProvider !== undefined; | ||
|
||
export const useLeatherSBTCBridgeButton = () => { |
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.
define as fn, and consider sbtc a word to avoid SBTCB
capitalisation
export const useLeatherSBTCBridgeButton = () => { | |
export function useLeatherSbtcBridgeButton() { |
if (!leatherDetected) { | ||
return; | ||
} | ||
(window as any).LeatherProvider?.request('swap', { from: 'STX', to: 'ALEX' }); |
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.
@kyranjamie FYI the only reason I had to do this any
business is because the @leather.io/rpc
types don't include this method - is that on purpose? I have also been updating the package as I add these things and plan to push those changes and move our types here over to that.
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.
@kyranjamie FYI the only reason I had to do this any business is because the @leather.io/rpc types don't include this method - is that on purpose?
Have we included the override of window types anywhere? .request
should be there then
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.
.request
is in there but the parameters have types and open
is not defined in our request
parameters
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.
Here's what I mean: leather-io/mono#728
Case: Leather wallet not installed Design doesn't have to be on par, we can use the stacks connect/install one and just apply the copy/content (with leather being the only wallet avail to install) |
@@ -31,8 +31,7 @@ export function ChooseStackingMethodLayout(props: ChooseStackingMethodLayoutProp | |||
<Messages {...props} /> | |||
</Box> | |||
)} | |||
|
|||
{/* <EarnWithSBTCSection {...props} /> */} | |||
<EarnWithSBTCSection {...props} /> |
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.
<EarnWithSBTCSection {...props} /> | |
<EarnWithSbtcSection {...props} /> |
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 think we can only unhide this by monday/official sBTC launch, otherwise this'll already get visible to everybody once merged?
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.
the domain is currently basically private (not linked anywhere) so i think we're safe to merge soonish - we will have to update marketing links to this page as a part of this release, as well as redirect lockstacks.com -> earn
No description provided.