Skip to content

Commit

Permalink
💄 Hide reserve settings if is NewsPress mode (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Sep 13, 2024
1 parent ad26483 commit d72fd07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/NFTMint/WriterMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

<template v-if="shouldShowSettings">
<div
v-if="!isNewsPress"
class="flex flex-col justify-start gap-[32px] p-[20px] pb-[24px] border-2 border-[#E6F4F2] rounded-[16px] w-full"
>
<Label
Expand Down Expand Up @@ -149,6 +150,7 @@
</select>
</div>
<div
v-if="!isNewsPress"
class="flex justify-between gap-[12px] text-dark-gray text-[14px] items-center"
>
<label>
Expand Down Expand Up @@ -179,6 +181,7 @@ export default class WriterMessage extends Vue {
@Prop(Number) readonly mintAmount!: number
@Prop(Number) readonly maxMintAmount!: number
@Prop(String) readonly collectExpiryDate!: string
@Prop(Boolean) readonly isNewsPress!: boolean
userInfo: any = undefined
avatar: string = ''
Expand Down
3 changes: 3 additions & 0 deletions pages/nft/iscn/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
:max-mint-amount="maxMintAmount"
:reserve-amount.sync="reserveNft"
:collect-expiry-date.sync="collectExpiryDate"
:is-news-press="isNewsPress"
@message-change="(value) => (message = value)"
@update-mint-amount.once="handleInputMintAmount"
@update-reserve.once="handleInputReserveNft"
Expand Down Expand Up @@ -226,6 +227,8 @@ export default class NFTMintPage extends Vue {
@walletModule.Getter('getSigner') signer!: OfflineSigner | null
platform = this.$route.query.platform as string || ''
isNewsPress = !!this.$route.query.news_press && this.$route.query.news_press !== '0'
classId: string = ''
nftsIds: string[] = []
Expand Down

0 comments on commit d72fd07

Please sign in to comment.