From 74da06bcaee31308e6a1e91cc90258ca8a8b2a34 Mon Sep 17 00:00:00 2001 From: Jennie Alles Date: Fri, 12 Jan 2024 20:09:30 +0700 Subject: [PATCH] fix(components): add missing title for instantiate permission and adjust contract menu in nav bar --- CHANGELOG.md | 1 + src/lib/components/upload/UploadSection.tsx | 23 +++++++++++------- src/lib/layout/mobile/NavDrawer.tsx | 2 +- src/lib/pages/proposal/store-code/index.tsx | 26 ++++++++++----------- 4 files changed, 30 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e60f4d0b..d9c27035e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Improvements +- [#726](https://github.com/alleslabs/celatone-frontend/pull/726) Add missing title for instantiate permission and adjust contract menu in nav bar - [#713](https://github.com/alleslabs/celatone-frontend/pull/713) Adjust search state consistency - [#712](https://github.com/alleslabs/celatone-frontend/pull/712) api v1 - proposal list - [#714](https://github.com/alleslabs/celatone-frontend/pull/714) api v1 - recent contracts list diff --git a/src/lib/components/upload/UploadSection.tsx b/src/lib/components/upload/UploadSection.tsx index aa151ec76..7e168dbd1 100644 --- a/src/lib/components/upload/UploadSection.tsx +++ b/src/lib/components/upload/UploadSection.tsx @@ -1,4 +1,4 @@ -import { Box, Button, Flex } from "@chakra-ui/react"; +import { Box, Button, Flex, Heading, Text } from "@chakra-ui/react"; import type { StdFee } from "@cosmjs/stargate"; import { useCallback, useEffect, useMemo, useState } from "react"; import { useForm } from "react-hook-form"; @@ -230,12 +230,20 @@ export const UploadSection = ({ } variant="fixed-floating" /> - - + + + Instantiate Permission + + + Specify who has the authority to instantiate the contract using this + code + + + {(simulateStatus.status !== "default" || isSimulating) && ( -