Skip to content

Commit 604890e

Browse files
authoredMar 29, 2024··
Merge pull request #245 from MobulaFi/dev
Dev
2 parents e389641 + 00384c3 commit 604890e

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed
 

‎src/features/asset/components/token-social-info/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Button } from "components/button";
22
import { blockchainsContentWithNonEVM } from "mobula-lite/lib/chains/constants";
33
import { BlockchainNameWithNonEVM } from "mobula-lite/lib/model";
44
import { useRouter } from "next/navigation";
5-
import { useContext } from "react";
5+
import React, { useContext } from "react";
66
import {
77
BsDiscord,
88
BsGlobe,
@@ -192,7 +192,7 @@ export const TokenSocialsInfo = () => {
192192
) : null}
193193
<Button
194194
onClick={editPage}
195-
extraCss="text-light-font-60 dark:text-dark-font-60 hover:underline"
195+
extraCss="text-light-font-60 dark:text-dark-font-60 hover:underline ml-auto lg:ml-0"
196196
>
197197
Edit Page
198198
</Button>

‎src/features/misc/listing-form/components/ui/multi-input-template/index.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
blockchainsContent,
55
blockchainsContentWithNonEVM,
66
} from "mobula-lite/lib/chains/constants";
7-
import { ChangeEvent, useState } from "react";
7+
import React, { ChangeEvent, useState } from "react";
88
import { AiOutlineClose } from "react-icons/ai";
99
import { LargeFont, MediumFont } from "../../../../../../components/fonts";
1010
import { NextImageFallback } from "../../../../../../components/image";
@@ -39,8 +39,6 @@ export const MultiInputTemplate = ({
3939
const [temporateValue, setTemporateValue] = useState<any>(state[name]);
4040
const { editAssetReducer, setEditAssetReducer } = useGeneralContext();
4141

42-
console.log("temporateValue", temporateValue);
43-
4442
const handleNewContract = (
4543
e: ChangeEvent<HTMLInputElement>,
4644
i: string,
@@ -56,6 +54,7 @@ export const MultiInputTemplate = ({
5654
},
5755
});
5856
const getBlockchain = async (address: string) => {
57+
console.log("API_ENDPOINT", API_ENDPOINT, address);
5958
const response: any = await axios.get(
6059
`${API_ENDPOINT}/api/1/metadata?asset=${address}`,
6160
{
@@ -64,10 +63,16 @@ export const MultiInputTemplate = ({
6463
},
6564
}
6665
);
66+
67+
console.log("response", response, address);
6768
const blockchainName = response.data.data.blockchains[0];
6869

70+
console.log("blockchainName", blockchainName);
71+
6972
const { chainId } = blockchainsContentWithNonEVM[blockchainName];
7073

74+
console.log("chainId", chainId);
75+
7176
dispatch({
7277
type: ACTIONS.SET_ELEMENT,
7378
payload: {

‎src/features/misc/listing-form/index.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export const Listing = () => {
2323
reducer,
2424
editAssetReducer || INITIAL_STATE
2525
);
26+
27+
console.log("state", state);
28+
2629
const { actualPage, setActualPage, setWallet, setIsListed, isListed } =
2730
useContext(ListingContext);
2831

0 commit comments

Comments
 (0)
Please sign in to comment.