Skip to content

Commit

Permalink
feat(SignalInterest): action update
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWelsh committed Nov 17, 2023
1 parent 8a45bc1 commit a44830b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/SignalInterest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ interface ISignalInterest {
title?: string,
tokenAddress: string,
tokenId: string,
tokenNetwork: string,
}

const SignalInterest = (props: PropsFromRedux & ISignalInterest) => {
Expand All @@ -93,6 +94,7 @@ const SignalInterest = (props: PropsFromRedux & ISignalInterest) => {
darkMode,
tokenAddress,
tokenId,
tokenNetwork,
} = props;

const signOfferMessage = async (proAmount: string) => {
Expand All @@ -111,10 +113,11 @@ const SignalInterest = (props: PropsFromRedux & ISignalInterest) => {
signerAccount,
nonce,
salt,
"make_offer",
"make_offchain_offer",
{
token_address: tokenAddress,
token_id: tokenId,
token_network: tokenNetwork,
offer_token_address: PRO_TOKEN_ADDRESS,
offer_token_amount: utils.parseUnits(proAmount.toString(), PRO_TOKEN_DECIMALS).toString()
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/SingleTokenPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ const SingleTokenPage = () => {
}
<GenericTitleContainer variant={"h5"} paddingBottom={8} marginTop={24} marginBottom={12} title="History"/>
{tokenEventRecord && <EventHistoryContainer eventRecords={tokenEventRecord} assetRecord={tokenRecord} />}
{allowSignalInterest && tokenId && tokenAddress &&
{allowSignalInterest && tokenId && tokenAddress && network &&
<>
<GenericTitleContainer variant={"h5"} paddingBottom={8} marginTop={24} marginBottom={12} title="Make an Offer"/>
<SignalInterestContainer tokenId={tokenId} tokenAddress={tokenAddress} />
<SignalInterestContainer tokenId={tokenId} tokenAddress={tokenAddress} tokenNetwork={network} />
</>
}
</>
Expand Down

0 comments on commit a44830b

Please sign in to comment.