From 5c54efecf490ccce6b037a519476d547d2d1ac89 Mon Sep 17 00:00:00 2001 From: Yashvardhan Jagnani Date: Wed, 31 Jul 2024 12:45:26 +0530 Subject: [PATCH] chore: update license --- README.md | 13 ++-- src/components/Atoms/Address/Address.tsx | 62 ++++++++++--------- .../TransactionReceipt/TransactionReceipt.tsx | 2 +- 3 files changed, 37 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index bba7f750..778ee2d4 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 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", }