Skip to content

Commit

Permalink
fix sales page
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Jun 7, 2024
1 parent 71bf9f7 commit e2f9d37
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 38 deletions.
18 changes: 0 additions & 18 deletions resources/js/components/marketplace/SalesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@
>
Bidder
</th>
<th
scope="col"
class="px-3 py-3.5 text-left text-sm font-semibold text-light-content-strong dark:text-dark-content-strong"
>
Listing
</th>
<th scope="col" class="relative py-3.5 pl-3 pr-4 sm:pr-3"></th>
</tr>
</thead>
Expand Down Expand Up @@ -88,11 +82,6 @@
>
{{ addressShortHex(sale.bidder) }}
</td>
<td
class="whitespace-nowrap px-3 py-4 text-sm text-light-content dark:text-dark-content"
>
{{ shortString(sale.listing.listingId) }}
</td>
<td
class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-3 flex justify-end"
>
Expand Down Expand Up @@ -158,13 +147,6 @@ const searchInputs = ref([
value: [],
type: 'text',
},
{
name: 'listingIds',
label: 'Listing IDs',
placeholder: 'Search by listing ID',
value: [],
type: 'text',
},
]);
const enablePagination = computed(() => !isLoading.value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
{{ item.amount }}
</dd>
</div>

<div class="space-y-2 pt-4 pb-3">
<dt class="text-base font-medium text-light-content dark:text-dark-content">Listing</dt>
<dd class="mt-1 text-sm text-light-content-strong dark:text-dark-content-strong break-words">
{{ item.listing.listingId }}
</dd>
</div>
</div>
</div>
</div>
Expand Down
11 changes: 0 additions & 11 deletions resources/js/graphql/query/marketplace/GetSales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@ export default `query GetSales($ids: [BigInt!], $accounts: [String!], $listingId
publicKey
}
}
listing {
listingId
makeAssetId {
collectionId
tokenId
}
takeAssetId {
collectionId
tokenId
}
}
}
cursor
}
Expand Down
5 changes: 3 additions & 2 deletions resources/js/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ export const formatPriceFromENJ = (price: any) => {

export const checkFormatPrice = (price, listing, currency) => {
if (
listing.makeAssetId.collectionId !== '0' ||
listing &&
(listing.makeAssetId.collectionId !== '0' ||
listing.makeAssetId.tokenId !== '0' ||
listing.takeAssetId.tokenId !== '0' ||
listing.takeAssetId.collectionId !== '0'
listing.takeAssetId.collectionId !== '0')
) {
return `${formatPriceFromENJ(price)?.toLocaleString('en-US', {
maximumFractionDigits: 18,
Expand Down

0 comments on commit e2f9d37

Please sign in to comment.