mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
add Warpcast deep link
This commit is contained in:
parent
264bc74187
commit
0e2e706c48
@ -65,6 +65,10 @@ export default function Demo() {
|
|||||||
sdk.actions.openUrl("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
|
sdk.actions.openUrl("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const openWarpcastUrl = useCallback(() => {
|
||||||
|
sdk.actions.openUrl("https://warpcast.com/~/compose");
|
||||||
|
}, []);
|
||||||
|
|
||||||
const close = useCallback(() => {
|
const close = useCallback(() => {
|
||||||
sdk.actions.close();
|
sdk.actions.close();
|
||||||
}, []);
|
}, []);
|
||||||
@ -158,6 +162,15 @@ export default function Demo() {
|
|||||||
<Button onClick={openUrl}>Open Link</Button>
|
<Button onClick={openUrl}>Open Link</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="mb-4">
|
||||||
|
<div className="p-2 bg-gray-100 dark:bg-gray-800 rounded-lg my-2">
|
||||||
|
<pre className="font-mono text-xs whitespace-pre-wrap break-words max-w-[260px] overflow-x-">
|
||||||
|
sdk.actions.openUrl
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<Button onClick={openWarpcastUrl}>Open Warpcast Link</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<div className="p-2 bg-gray-100 dark:bg-gray-800 rounded-lg my-2">
|
<div className="p-2 bg-gray-100 dark:bg-gray-800 rounded-lg my-2">
|
||||||
<pre className="font-mono text-xs whitespace-pre-wrap break-words max-w-[260px] overflow-x-">
|
<pre className="font-mono text-xs whitespace-pre-wrap break-words max-w-[260px] overflow-x-">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user