mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 09:13:35 +01:00
package updates
This commit is contained in:
parent
3efdff0035
commit
678e983076
2308
package-lock.json
generated
2308
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
42
package.json
42
package.json
@ -29,7 +29,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@kremalicious/react-feather": "^2.1.0",
|
||||
"@rainbow-me/rainbowkit": "^0.5.1",
|
||||
"@rainbow-me/rainbowkit": "^0.5.3",
|
||||
"axios": "^0.27.2",
|
||||
"classnames": "^2.3.1",
|
||||
"date-fns": "^2.29.2",
|
||||
@ -38,30 +38,30 @@
|
||||
"fast-exif": "^1.0.1",
|
||||
"feather-icons": "^4.29.0",
|
||||
"fraction.js": "^4.2.0",
|
||||
"gatsby": "^4.22.1",
|
||||
"gatsby-plugin-catch-links": "^4.22.0",
|
||||
"gatsby-plugin-feed": "^4.22.0",
|
||||
"gatsby-plugin-image": "^2.22.0",
|
||||
"gatsby": "^4.23.0",
|
||||
"gatsby-plugin-catch-links": "^4.23.0",
|
||||
"gatsby-plugin-feed": "^4.23.0",
|
||||
"gatsby-plugin-image": "^2.23.0",
|
||||
"gatsby-plugin-lunr": "^1.5.2",
|
||||
"gatsby-plugin-manifest": "^4.22.0",
|
||||
"gatsby-plugin-manifest": "^4.23.0",
|
||||
"gatsby-plugin-matomo": "^0.13.0",
|
||||
"gatsby-plugin-meta-redirect": "^1.1.1",
|
||||
"gatsby-plugin-offline": "^5.22.0",
|
||||
"gatsby-plugin-react-helmet": "^5.22.0",
|
||||
"gatsby-plugin-sharp": "^4.22.0",
|
||||
"gatsby-plugin-sitemap": "^5.22.0",
|
||||
"gatsby-plugin-offline": "^5.23.0",
|
||||
"gatsby-plugin-react-helmet": "^5.23.0",
|
||||
"gatsby-plugin-sharp": "^4.23.0",
|
||||
"gatsby-plugin-sitemap": "^5.23.0",
|
||||
"gatsby-plugin-svgr": "^3.0.0-beta.0",
|
||||
"gatsby-redirect-from": "^0.5.0",
|
||||
"gatsby-remark-autolink-headers": "^5.22.0",
|
||||
"gatsby-remark-copy-linked-files": "^5.22.0",
|
||||
"gatsby-remark-images": "^6.22.0",
|
||||
"gatsby-remark-autolink-headers": "^5.23.0",
|
||||
"gatsby-remark-copy-linked-files": "^5.23.0",
|
||||
"gatsby-remark-images": "^6.23.0",
|
||||
"gatsby-remark-images-medium-zoom": "^1.7.0",
|
||||
"gatsby-remark-smartypants": "^5.22.0",
|
||||
"gatsby-remark-smartypants": "^5.23.0",
|
||||
"gatsby-remark-vscode": "^3.3.1",
|
||||
"gatsby-source-filesystem": "^4.22.0",
|
||||
"gatsby-source-graphql": "^4.22.0",
|
||||
"gatsby-transformer-remark": "^5.22.0",
|
||||
"gatsby-transformer-sharp": "^4.22.0",
|
||||
"gatsby-source-filesystem": "^4.23.0",
|
||||
"gatsby-source-graphql": "^4.23.0",
|
||||
"gatsby-transformer-remark": "^5.23.0",
|
||||
"gatsby-transformer-sharp": "^4.23.0",
|
||||
"nord-visual-studio-code": "github:arcticicestudio/nord-visual-studio-code",
|
||||
"pigeon-maps": "^0.21.0",
|
||||
"pigeon-marker": "^0.3.4",
|
||||
@ -93,7 +93,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
||||
"@typescript-eslint/parser": "^5.36.2",
|
||||
"@welldone-software/why-did-you-render": "^7.0.1",
|
||||
"babel-preset-gatsby": "^2.22.1",
|
||||
"babel-preset-gatsby": "^2.23.0",
|
||||
"eslint": "^8.23.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-graphql": "^4.0.0",
|
||||
@ -103,8 +103,8 @@
|
||||
"eslint-plugin-testing-library": "^5.6.3",
|
||||
"fs-extra": "^10.1.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^29.0.2",
|
||||
"jest-environment-jsdom": "^29.0.2",
|
||||
"jest": "^29.0.3",
|
||||
"jest-environment-jsdom": "^29.0.3",
|
||||
"markdownlint-cli": "^0.32.2",
|
||||
"node-iptc": "^1.0.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
|
@ -3,7 +3,7 @@ import { parseEther } from '@ethersproject/units'
|
||||
import InputGroup from './InputGroup'
|
||||
import Alert, { getTransactionMessage } from './Alert'
|
||||
import { web3 as styleWeb3 } from './index.module.css'
|
||||
import { useSendTransaction } from 'wagmi'
|
||||
import { useSendTransaction, usePrepareSendTransaction } from 'wagmi'
|
||||
import { ConnectButton } from '@rainbow-me/rainbowkit'
|
||||
|
||||
export default function Web3Donation({
|
||||
@ -11,7 +11,8 @@ export default function Web3Donation({
|
||||
}: {
|
||||
address: string
|
||||
}): ReactElement {
|
||||
const { sendTransactionAsync } = useSendTransaction()
|
||||
const { config } = usePrepareSendTransaction({ request: {} })
|
||||
const { sendTransactionAsync } = useSendTransaction(config)
|
||||
|
||||
const [message, setMessage] = useState<{ status: string; text: string }>()
|
||||
const [transactionHash, setTransactionHash] = useState<string>()
|
||||
@ -24,7 +25,7 @@ export default function Web3Donation({
|
||||
|
||||
try {
|
||||
const tx = await sendTransactionAsync({
|
||||
request: {
|
||||
recklesslySetUnpreparedRequest: {
|
||||
to: address,
|
||||
value: parseEther(amount) // ETH -> Wei
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user