Skip to content

Commit

Permalink
Merge pull request #3 from NEARBuilders/feat/add-wallet
Browse files Browse the repository at this point in the history
Configures for Wallet custom element
  • Loading branch information
Megha-Dev-19 authored Aug 2, 2024
2 parents ee5144d + 427eb3b commit fbd4779
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
/build
/dist

tree.json
tree.json
data.json
3 changes: 2 additions & 1 deletion bos.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"account": "buildcommons.near"
"account": "buildcommons.near",
"index": "buildcommons.near/widget/Index"
}
3 changes: 0 additions & 3 deletions data.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"bw": "bos-workspace",
"dev": "bw dev",
"dev": "bw dev -g https://ipfs.web4.near.page/ipfs/bafybeibe63hqugbqr4writdxgezgl5swgujay6t5uptw2px7q63r7crk2q",
"build": "bw build",
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
},
Expand Down
1 change: 1 addition & 0 deletions widget/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ if (!userLoggedIn) {
<div className="mx-auto w-max pt-10 space-y-2">
<Alert>
<AlertTitle>Please login to continue!</AlertTitle>
<Wallet provides={({ signIn}) => <Button onClick={signIn}>Login</Button>} />
</Alert>
</div>
</Tailwind>
Expand Down

0 comments on commit fbd4779

Please sign in to comment.