;
isLoading: boolean;
onViewMore?: () => void;
@@ -20,12 +19,12 @@ interface ModuleListsBodyProps {
export const ModuleListsBody = ({
selectedAddress,
+ keyword,
modules,
isLoading,
onViewMore,
}: ModuleListsBodyProps) => {
const navigate = useInternalNavigate();
- const [keyword, setKeyword] = useState("");
const filteredModules = useMemo(() => {
if (!keyword) return modules;
@@ -58,33 +57,18 @@ export const ModuleListsBody = ({
/>
);
return (
-
- {!onViewMore && (
-
- setKeyword(e.target.value)}
- action="execute-message-search"
+
+ {(onViewMore ? filteredModules.slice(0, 9) : filteredModules).map(
+ (item) => (
+
-
+ )
)}
-
- {(onViewMore ? filteredModules.slice(0, 9) : filteredModules).map(
- (item) => (
-
- )
- )}
-
- {onViewMore && filteredModules.length > 9 && (
-
- )}
-
+
);
};
diff --git a/src/lib/pages/account-details/index.tsx b/src/lib/pages/account-details/index.tsx
index c4634f810..185454876 100644
--- a/src/lib/pages/account-details/index.tsx
+++ b/src/lib/pages/account-details/index.tsx
@@ -404,8 +404,8 @@ const AccountDetailsBody = ({
diff --git a/src/lib/styles/theme/components/form.ts b/src/lib/styles/theme/components/form.ts
index 6885f926e..618a33983 100644
--- a/src/lib/styles/theme/components/form.ts
+++ b/src/lib/styles/theme/components/form.ts
@@ -10,7 +10,7 @@ const errorMain = "error.main";
const labelStyles = {
top: 0,
left: 0,
- zIndex: 2,
+ zIndex: 1,
position: "absolute",
pointerEvents: "none",
mx: 3,
diff --git a/src/lib/utils/abi.ts b/src/lib/utils/abi.ts
index 897aabd07..c17487be5 100644
--- a/src/lib/utils/abi.ts
+++ b/src/lib/utils/abi.ts
@@ -55,16 +55,15 @@ export const getAbiInitialData = (length: number) =>
// ------------------------------------------//
// -----------------MOVE ARGS----------------//
// ------------------------------------------//
-export const getArgType = (argType: string) => {
- if (argType === "0x1::string::String") return BCS.STRING;
- if (argType.startsWith("0x1::option::Option")) return BCS.OPTION;
- if (argType.startsWith("0x1::object::Object")) return BCS.OBJECT;
- if (argType === "0x1::fixed_point32::FixedPoint32") return BCS.FIXED_POINT32;
- if (argType === "0x1::fixed_point64::FixedPoint64") return BCS.FIXED_POINT64;
- if (argType === "0x1::decimal128::Decimal128") return BCS.DECIMAL128;
- if (argType === "0x1::decimal256::Decimal256") return BCS.DECIMAL256;
- return argType;
-};
+export const getArgType = (argType: string) =>
+ argType
+ .replace("0x1::string::String", BCS.STRING)
+ .replace("0x1::option::Option", BCS.OPTION)
+ .replace("0x1::object::Object", BCS.OBJECT)
+ .replace("0x1::fixed_point32::FixedPoint32", BCS.FIXED_POINT32)
+ .replace("0x1::fixed_point64::FixedPoint64", BCS.FIXED_POINT64)
+ .replace("0x1::decimal128::Decimal128", BCS.DECIMAL128)
+ .replace("0x1::decimal256::Decimal256", BCS.DECIMAL256);
const getArgValue = ({
type,