Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I think the |
|
also, can you introduce what is this Bitcoin Connect trying to do? |
Includes button and Modal to connect Lightning wallets. Here is the repo of the component: https://github.com/getAlby/bitcoin-connect.git |
|
@digi-monkey Can we add a githook with husky to compile react before deploy to check for these errors?
|
sounds cool, so this can enable users to zap in their mobile phone? |
yea I think we need a CI that can run for every PR. I am not sure if we should do it in the .husky like every pre-commit we should run |
|
|
||
| <List.Item | ||
| actions={[ | ||
|
|
There was a problem hiding this comment.
| key={'btc-connect'} |
this should fixed the compiled error
|
Yes, with BitcoinConnect users of Alby, Mutiny or Umbrel wallets can zap on mobile in the PWA. |
2023-11-29-15-48-16_eC16on8h.mp4 |
package.json
Outdated
| "scripts": { | ||
| "wasm:profile": "cd wasm && rustc --crate-type cdylib --target wasm32-unknown-unknown -C lto -C opt-level=z -o profile.wasm examples/profile.rs", | ||
| "dev": "REACT_APP_COMMIT_HASH=$(git rev-parse --short HEAD) next dev", | ||
| "dev": "set \"REACT_APP_COMMIT_HASH=$(git rev-parse --short HEAD)\" && next dev", |
| const BitcoinButton: React.FC<BitcoinButtonProps> = ({ isDisabled }) => { | ||
| const handleConnect = () => { | ||
| if (!isDisabled) { | ||
| alert('Connected!'); |
| import Head from 'next/head'; | ||
| import theme from 'constants/theme'; | ||
|
|
||
|
|
There was a problem hiding this comment.
To resolve - why could you not import bitcoin connect here? it's needed so zaps work on every page
There was a problem hiding this comment.
@Alan-AC7 For NextJS you can add this to src/components/PostItems/PostReactions/index.tsx to only import the library clientside:
useEffect(() => {
// load bitcoin connect for zaps
import("@getalby/bitcoin-connect-react");
}, []);
src/styles/global.scss
Outdated
| } | ||
|
|
||
| :root { | ||
| --bc-color-brand: rgb(89,128,34); |
There was a problem hiding this comment.
why do you need to re-declare the color? isn't it already declared somewhere in the site's css? is it one of the primary hex colors?



Includes button and Modal to connect Lightning wallets. with BitcoinConnect users of Alby, Mutiny or Umbrel wallets can zap on mobile in the PWA.
Here is the repo of the component: https://github.com/getAlby/bitcoin-connect.gi