diff --git a/README.md b/README.md index bba7f750..69e3d02b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
- GoldRush Kit Logo + GoldRush Kit - powered by Covalent
@@ -13,7 +13,7 @@ npm downloads - MIT + Apache-2.0

@@ -40,12 +40,6 @@ Install `goldrush-kit` using `npm`: npm install @covalenthq/goldrush-kit ``` -or `yarn`: - -```bash -yarn add @covalenthq/goldrush-kit -``` - ## Implementation 1. Import `GoldRushProvider` @@ -55,7 +49,8 @@ import { GoldRushProvider } from "@covalenthq/goldrush-kit"; ``` 2. Wrap `GoldRushProvider` around the application. -3. Configure the provider and add it to the `apikey` props with your GoldRush API key. You can register for a free key on [GoldRush's website](https://goldrush.dev/platform/auth/register/). +3. Configure the provider and add it to the `apikey` props with your GoldRush API key. You can register for a free key on [GoldRush's website](https://goldrush.dev/platform/apikey). + > **Note:** You should always keep your API key private, never put it directly into your code, especially front end code. Instead, use an environment variable to inject the key into your code. ```tsx @@ -220,4 +215,4 @@ Give a ⭐️ if this project helped you! ## License -This project is Apache 2.0 licensed. +This project is [Apache-2.0](./LICENSE) licensed. diff --git a/src/components/Atoms/Address/Address.tsx b/src/components/Atoms/Address/Address.tsx index 1fccd89c..ef4e57dd 100644 --- a/src/components/Atoms/Address/Address.tsx +++ b/src/components/Atoms/Address/Address.tsx @@ -32,38 +32,40 @@ export const Address: React.FC = ({ }; return ( -

+ <> - {avatar && } +

+ {avatar && } - {actionableWrapper( - actionable_address(address), - label?.trim() || truncate(address) - )} + {actionableWrapper( + actionable_address(address), + label?.trim() || truncate(address) + )} - {show_copy_icon && ( - - )} -

+ {show_copy_icon && ( + + )} +

+ ); }; diff --git a/src/components/Molecules/Transaction/TransactionReceipt/TransactionReceipt.tsx b/src/components/Molecules/Transaction/TransactionReceipt/TransactionReceipt.tsx index 5725cf5d..da73ddc4 100644 --- a/src/components/Molecules/Transaction/TransactionReceipt/TransactionReceipt.tsx +++ b/src/components/Molecules/Transaction/TransactionReceipt/TransactionReceipt.tsx @@ -47,7 +47,7 @@ export const TransactionReceipt: React.FC = ({ }), headers: { "content-type": "application/json", - "x-covalent-api-key": apikey, + "x-goldrush-api-key": apikey, }, method: "POST", }