forked from web3ui/web3uikit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
locothedev
committed
Jun 3, 2022
1 parent
1331ce6
commit 3833b6f
Showing
13 changed files
with
2,878 additions
and
2,715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './lib'; | ||
export * from './lib/ConnectButton/ConnectButton'; |
15 changes: 0 additions & 15 deletions
15
packages/ui/src/lib/ConnectButton/ConnectButton.stories.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import { IConnectWalletProps } from './types'; | ||
import Moralis from 'moralis'; | ||
import { Button } from '@web3uikit/core'; | ||
const ConnectWallet = ({ | ||
text = 'Connect Wallet', | ||
authType: provider, | ||
}: IConnectWalletProps) => { | ||
return ( | ||
<Button | ||
theme="secondary" | ||
text={text} | ||
onClick={() => Moralis.enableWeb3({ provider })} | ||
/> | ||
); | ||
}; | ||
|
||
export default ConnectWallet; | ||
import { Button } from "@web3uikit/core" | ||
import Moralis from '@moralisweb3/evm-wallet-connect-connector' | ||
export const ConnectButton = () => { | ||
return ( | ||
<Button text="Connect Wallet" onClick={() => Moralis.connect()}/> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "package.json"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.