From c5a088f63e8d1a62ae9769eefa869b76369f836a Mon Sep 17 00:00:00 2001 From: Alec Menconi Date: Tue, 12 Mar 2024 20:13:44 -0400 Subject: [PATCH] Fixed nft network and media issues --- src/app/@api/member.api.ts | 15 ------ .../nft-selection-toolbar.module.ts | 3 +- .../nft-transfer/nft-transfer.component.html | 54 +++++++++++++++++-- .../nft-transfer/nft-transfer.component.ts | 44 ++++++++++++++- .../nft-transfer/nft-transfer.module.ts | 2 + src/app/components/nft/nft.module.ts | 3 +- .../pages/member/pages/member/member.page.ts | 3 -- 7 files changed, 99 insertions(+), 25 deletions(-) diff --git a/src/app/@api/member.api.ts b/src/app/@api/member.api.ts index 7b017aa..a6f4340 100644 --- a/src/app/@api/member.api.ts +++ b/src/app/@api/member.api.ts @@ -133,7 +133,6 @@ export class MemberApi extends BaseApi { }), ); - /* public topSpaces = ( memberId: NetworkAddress, orderBy = ['createdOn'], @@ -141,20 +140,6 @@ export class MemberApi extends BaseApi { lastValue?: string, limit?: number, ) => this.spaceDataset.getTopByMember(memberId, orderBy, orderByDir, lastValue, limit); - */ - - public topSpaces = ( - memberId: NetworkAddress, - orderBy = ['createdOn'], - orderByDir = ['desc'], - lastValue?: string, - limit?: number, - ) => { - console.log( - `topSpaces API function called with memberId: ${memberId}, orderBy: ${orderBy}, orderByDir: ${orderByDir}, lastValue: ${lastValue}, limit: ${limit}`, - ); - return this.spaceDataset.getTopByMember(memberId, orderBy, orderByDir, lastValue, limit); - }; public pendingSpaces = ( memberId: NetworkAddress, diff --git a/src/app/components/nft/components/nft-selection-toolbar/nft-selection-toolbar.module.ts b/src/app/components/nft/components/nft-selection-toolbar/nft-selection-toolbar.module.ts index 8f00905..11c0dca 100644 --- a/src/app/components/nft/components/nft-selection-toolbar/nft-selection-toolbar.module.ts +++ b/src/app/components/nft/components/nft-selection-toolbar/nft-selection-toolbar.module.ts @@ -4,10 +4,11 @@ import { NftSelectionToolbarComponent } from './nft-selection-toolbar.component' import { NzButtonModule } from 'ng-zorro-antd/button'; import { NzModalModule } from 'ng-zorro-antd/modal'; import { NftTransferModule } from '@components/nft/components/nft-transfer/nft-transfer.module'; +import { IconModule } from '@components/icon/icon.module'; @NgModule({ declarations: [NftSelectionToolbarComponent], - imports: [CommonModule, NzButtonModule, NzModalModule, NftTransferModule], + imports: [CommonModule, NzButtonModule, NzModalModule, NftTransferModule, IconModule], exports: [NftSelectionToolbarComponent], }) export class NftSelectionToolbarModule {} diff --git a/src/app/components/nft/components/nft-transfer/nft-transfer.component.html b/src/app/components/nft/components/nft-transfer/nft-transfer.component.html index 5cde020..1c0ab00 100644 --- a/src/app/components/nft/components/nft-transfer/nft-transfer.component.html +++ b/src/app/components/nft/components/nft-transfer/nft-transfer.component.html @@ -5,8 +5,33 @@ Image Name Network - Transfer - Withdraw + +
+ Transfer + + + +
+
+ +
+ Withdraw + + + +
+
+ Results - + + NFT image + {{ nft.name }} {{ - nft.mintingData?.network + nft.network }} @@ -132,6 +168,16 @@ Close + +