diff --git a/CHANGELOG.md b/CHANGELOG.md index dd1a08876..2b983a050 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Features +- [#934](https://github.com/alleslabs/celatone-frontend/pull/934) Add view module in mobile - [#950](https://github.com/alleslabs/celatone-frontend/pull/950) Add initia username - [#971](https://github.com/alleslabs/celatone-frontend/pull/971) Support search functionality with LCD endpoint - [#970](https://github.com/alleslabs/celatone-frontend/pull/970) Support account details lite version diff --git a/src/config/chain/osmosis.ts b/src/config/chain/osmosis.ts index 71b2e301f..ed53dcfad 100644 --- a/src/config/chain/osmosis.ts +++ b/src/config/chain/osmosis.ts @@ -58,7 +58,7 @@ export const OSMOSIS_CHAIN_CONFIGS: ChainConfigs = { prettyName: "Osmosis Testnet", lcd: "https://lcd.osmotest5.osmosis.zone", rpc: "https://osmosis-testnet-rpc.polkachu.com:443", - indexer: "", + indexer: "https://osmo-test-5-graphql.alleslabs.dev/v1/graphql", wallets: [...keplrWallets], features: { faucet: { diff --git a/src/lib/components/MobileGuard.tsx b/src/lib/components/MobileGuard.tsx index ef2d26c52..318c2387d 100644 --- a/src/lib/components/MobileGuard.tsx +++ b/src/lib/components/MobileGuard.tsx @@ -29,6 +29,7 @@ export const MobileGuard = ({ children }: MobileGuardProps) => { pathName.includes(`/codes`) || // move pathName.includes(`/modules`) || + pathName.includes(`/interact`) || // validators pathName.includes(`/validators`); diff --git a/src/lib/components/forms/TextInput.tsx b/src/lib/components/forms/TextInput.tsx index f2195860a..300fdbb38 100644 --- a/src/lib/components/forms/TextInput.tsx +++ b/src/lib/components/forms/TextInput.tsx @@ -86,7 +86,7 @@ export const TextInput = ({ {status?.message ? ( getResponseMsg(status, helperText) ) : ( - + {helperText} )} diff --git a/src/lib/components/module/FunctionCard.tsx b/src/lib/components/module/FunctionCard.tsx index d7fb00f2e..a5a15422d 100644 --- a/src/lib/components/module/FunctionCard.tsx +++ b/src/lib/components/module/FunctionCard.tsx @@ -3,19 +3,24 @@ import { Flex, Text } from "@chakra-ui/react"; import { DotSeparator } from "../DotSeparator"; import { CustomIcon } from "../icon"; +import { useMobile } from "lib/app-provider"; import { Tooltip } from "lib/components/Tooltip"; import type { ExposedFunction } from "lib/types"; import { checkAvailability, getVisibilityIcon } from "lib/utils"; -type CardVariant = "common" | "disabled" | "selected"; +type CardVariant = "common" | "disabled" | "selected" | "readonly"; interface FunctionCardProps { variant?: CardVariant; - isSelected?: boolean; + isReadOnly?: boolean; exposedFn: ExposedFunction; onFunctionSelect: (fn: ExposedFunction) => void; } +interface FunctionCardBodyProps extends FunctionCardProps { + disabled: boolean; +} + const cardStyles: { [key in CardVariant]: FlexProps } = { common: { bgColor: "gray.800", @@ -35,93 +40,114 @@ const cardStyles: { [key in CardVariant]: FlexProps } = { cursor: "pointer", borderColor: "gray.600", }, + readonly: { + bgColor: "gray.800", + borderColor: "transparent", + }, }; -export const FunctionCard = ({ +const FunctionCardBody = ({ variant = "common", - exposedFn, onFunctionSelect, -}: FunctionCardProps) => { + isReadOnly, + disabled, + exposedFn, +}: FunctionCardBodyProps) => { const { is_view: isView, visibility, name } = exposedFn; - const disabled = !checkAvailability(exposedFn); return ( - )} - - {!isMobile && ( - <> - - - - - - - )} - - + {!isMobile && ( + + )} { + {isMobile && ( + + )} ); };