diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a83035d8..d558e9527 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Bug fixes
+- [#740](https://github.com/alleslabs/celatone-frontend/pull/740) Fix to use isDisabled instead of disabled on button
- [#739](https://github.com/alleslabs/celatone-frontend/pull/739) Fix nft minter address
## v1.5.0
diff --git a/README.md b/README.md
index 70eea40d1..69f750fc2 100644
--- a/README.md
+++ b/README.md
@@ -15,11 +15,7 @@ The Celatone frontend uses the following technologies:
### Prerequisites
-1. [Node.js](https://nodejs.org/en/) (version >= 16) or using node version manager [nvm](https://github.com/nvm-sh/nvm#intro) (recommended, installation guide for nvm [here](https://collabnix.com/how-to-install-and-configure-nvm-on-mac-os/)).
-2. [`Yarn`](https://yarnpkg.com/getting-started/install) installed.
-```bash
-npm install -g yarn
-```
+1. [Node.js](https://nodejs.org/en/) (version >= 18) or using node version manager [nvm](https://github.com/nvm-sh/nvm#intro) (recommended, installation guide for nvm [here](https://collabnix.com/how-to-install-and-configure-nvm-on-mac-os/)).
### Develop
@@ -41,7 +37,7 @@ gh repo clone alleslabs/celatone-frontend
# Navigate to the cloned repository
cd celatone-frontend
# Install dependencies
-yarn
+pnpm i
```
3. Create a `.env.local` file in the root of the project and add the following environment variables
@@ -50,12 +46,13 @@ yarn
# The mnemonic of the wallet that will be used for estimate gas fees
NEXT_PUBLIC_DUMMY_MNEMONIC="your mnemonic here"
NEXT_PUBLIC_SUPPORTED_CHAIN_IDS=osmosis-1,osmo-test-5
+NEXT_PUBLIC_CELATONE_API_OVERRIDE=http://localhost:8080
```
4. Finally, run the development server
```bash
-yarn dev
+pnpm dev
```
The website will then be live on [http://localhost:3000](http://localhost:3000)
diff --git a/src/lib/components/button/InstantiateButton.tsx b/src/lib/components/button/InstantiateButton.tsx
index 80a835541..bfbdff7e8 100644
--- a/src/lib/components/button/InstantiateButton.tsx
+++ b/src/lib/components/button/InstantiateButton.tsx
@@ -84,8 +84,7 @@ export const InstantiateButton = ({
diff --git a/src/lib/components/json-schema/UploadTemplate.tsx b/src/lib/components/json-schema/UploadTemplate.tsx
index b8a3d4822..a9a075c93 100644
--- a/src/lib/components/json-schema/UploadTemplate.tsx
+++ b/src/lib/components/json-schema/UploadTemplate.tsx
@@ -321,7 +321,7 @@ export const UploadTemplate = ({
alignSelf="center"
mt={6}
onClick={handleSave}
- disabled={disabledState}
+ isDisabled={disabledState}
>
Save JSON Schema
diff --git a/src/lib/components/select-contract/ContractListDetail.tsx b/src/lib/components/select-contract/ContractListDetail.tsx
index a152b3252..4b123c47c 100644
--- a/src/lib/components/select-contract/ContractListDetail.tsx
+++ b/src/lib/components/select-contract/ContractListDetail.tsx
@@ -118,7 +118,12 @@ export const ContractListDetail = ({
return (
-
+
: undefined
}
- disabled={!address}
+ isDisabled={!address}
>
{notSelected ? "Select Contract" : "Change Contract"}
diff --git a/src/lib/components/upload/InstantiatePermissionRadio.tsx b/src/lib/components/upload/InstantiatePermissionRadio.tsx
index 1089ecd24..55ef4e129 100644
--- a/src/lib/components/upload/InstantiatePermissionRadio.tsx
+++ b/src/lib/components/upload/InstantiatePermissionRadio.tsx
@@ -141,7 +141,7 @@ export const InstantiatePermissionRadio = ({
h="56px"
variant="outline-gray"
size="lg"
- disabled={fields.length <= 1}
+ isDisabled={fields.length <= 1}
onClick={() => {
remove(idx);
}}
diff --git a/src/lib/components/upload/UploadSection.tsx b/src/lib/components/upload/UploadSection.tsx
index 7e168dbd1..b470ec7fd 100644
--- a/src/lib/components/upload/UploadSection.tsx
+++ b/src/lib/components/upload/UploadSection.tsx
@@ -285,7 +285,7 @@ export const UploadSection = ({
diff --git a/src/lib/pages/stored-codes/components/UploadButton.tsx b/src/lib/pages/stored-codes/components/UploadButton.tsx
index 1fe3784a4..dbc1288ff 100644
--- a/src/lib/pages/stored-codes/components/UploadButton.tsx
+++ b/src/lib/pages/stored-codes/components/UploadButton.tsx
@@ -16,7 +16,7 @@ export const UploadButton = ({ isAllowed }: UploadButtonProps) => {
isDisabled={isAllowed}
>
navigate({ pathname: "/upload" })}
rightIcon={}
>
diff --git a/src/lib/services/contractStateService.ts b/src/lib/services/contractStateService.ts
index 4795f321f..c938e4a6e 100644
--- a/src/lib/services/contractStateService.ts
+++ b/src/lib/services/contractStateService.ts
@@ -26,7 +26,7 @@ export const useContractStates = (
pageParam
),
{
- getNextPageParam: (lastPage) => lastPage.nextKey,
+ getNextPageParam: (lastPage) => lastPage.nextKey ?? undefined,
refetchOnWindowFocus: false,
}
);