-
Notifications
You must be signed in to change notification settings - Fork 49
mobile: daimo pay deposit webview #1395
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1507c11
to
0a704a0
Compare
const [showDaimoPay, setShowDaimoPay] = useState(false); | ||
const nav = useNav(); | ||
|
||
// Automatically close Daimo Pay webview when the user navigates away. |
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.
👍
const baseUrl = "http://localhost:3005/embed"; | ||
const params = new URLSearchParams({ | ||
toAddress: account.address, | ||
refundAddress: "0xEEee8B1371f1664b7C2A8c111D6062b6576fA6f0", // daimo.eth |
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.
might be worth making a dedicated one
const handleMessage = useCallback( | ||
(event: WebViewMessageEvent) => { | ||
try { | ||
const data = JSON.parse(event.nativeEvent.data); |
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.
recommend logging data
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.
LGTM
- fix lint
- paste in a screenshot of the new deposit page
Screen.Recording.2025-04-21.at.11.35.48.AM.mov