Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added transaction value #161

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ui/components/molecules/modals/pendingModal/pendingInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export type PendingModalProps = {
zkTxId: string | null;
domainStatus: DOMAIN_STATUS;
startTimestamp: number | null;
transaction: string;
};
const PendingModal: FC<PendingModalProps> = (props) => {
const { isSendToCloudWorker, zkTxId, domainStatus } = props;
const { isSendToCloudWorker, zkTxId, domainStatus, transaction } = props;
const {
state: { additionData },
} = useStoreContext();
Expand All @@ -26,7 +27,7 @@ const PendingModal: FC<PendingModalProps> = (props) => {
? domainStatus
: additionData?.domainStatus;

const transaction = additionData?.transaction;
const transactionPay = transaction || additionData?.transaction;

useEffect(() => {
if (availableZkTxId) {
Expand All @@ -45,7 +46,7 @@ const PendingModal: FC<PendingModalProps> = (props) => {
zkTxId={availableZkTxId}
isSendToCloudWorker={isSendToCloudWorker || additionData?.zkTxId}
domainStatus={availableDomainStatus}
transaction={transaction}
transaction={transactionPay}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { useStoreContext } from "@/store";
import { addMinaText } from "@/helpers/name.helper";
import { Modals } from "@/components/molecules/modals/modals.types";


const initPage = 0;
const initSize = 50;

Expand Down Expand Up @@ -49,6 +48,7 @@ const AllContent = ({
zkTxId: domain.zkTxId,
domainStatus: domain.domainStatus,
startTimestamp: domain.startTimestamp,
transaction: domain.transaction
});
},
}
Expand Down
Loading