Skip to content

Commit

Permalink
fix: remove farcaster live mint from landing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 committed Aug 31, 2024
1 parent be9341a commit 22f78e7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 73 deletions.
32 changes: 0 additions & 32 deletions components/landing/FarcasterMintNotificationBanner.vue

This file was deleted.

35 changes: 0 additions & 35 deletions components/landing/HeroBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
<LandingDomainChangeNotificationBanner
v-if="!isLatestProductionDomain"
/>
<LandingFarcasterMintNotificationBanner
v-else-if="farcasterLiveMint"
:config="farcasterLiveMint"
/>
<LandingFarcasterBanner v-else />
</div>
</div>
Expand All @@ -35,37 +31,6 @@
</section>
</template>

<script lang="ts" setup>
import farcasterLiveMintConfig from '@/script/farcasterLiveMint.json'
const farcasterLiveMint = ref()
const fetchFarcasterLiveMint = async () => {
if (isProduction) {
try {
const res: string = await $fetch(
'https://raw.githubusercontent.com/kodadot/nft-gallery/main/script/farcasterLiveMint.json',
{
method: 'GET',
},
)
const config = JSON.parse(res)
if (config) {
farcasterLiveMint.value = config
}
}
catch (error) {
// no live mint
}
}
else {
farcasterLiveMint.value = farcasterLiveMintConfig
}
}
onMounted(fetchFarcasterLiveMint)
</script>

<style lang="scss" scoped>
@import '@/assets/styles/abstracts/variables';
.with-divider {
Expand Down
6 changes: 0 additions & 6 deletions script/farcasterLiveMint.json

This file was deleted.

0 comments on commit 22f78e7

Please sign in to comment.