Skip to content

Commit

Permalink
✨ spotlight backend sorting rmrk
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Jan 19, 2022
1 parent c3d9b6b commit c679f87
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/spotlight/SpotlightDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
</template>

<script lang="ts">
import { Component, Prop, mixins, Watch } from 'nuxt-property-decorator'
import { Component, Prop, Vue, Watch } from 'nuxt-property-decorator'
import shouldUpdate from '@/utils/shouldUpdate'
import PrefixMixin from '@/utils/mixins/prefixMixin'
import nftSimpleListByAccount from '@/queries/nftSimpleListByAccount.graphql'
const components = {
Expand All @@ -25,15 +24,15 @@ type NftSimpleView = {
}
@Component({ components })
export default class SpotlightDetail extends mixins(PrefixMixin) {
export default class SpotlightDetail extends Vue {
@Prop(String) public account!: string
protected nfts: NftSimpleView[] = []
protected isLoading = true
protected async fetchNFT(account: string) {
const nfts = await this.$apollo.query({
query: nftSimpleListByAccount,
client: this.urlPrefix,
client: 'rmrk',
variables: {
account,
first: 4,
Expand Down

0 comments on commit c679f87

Please sign in to comment.