Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Success notification unlockable drop #6213

Merged
merged 8 commits into from
Jun 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove testing logic
  • Loading branch information
Jarsen136 committed Jun 14, 2023
commit 5081c1a17450421bc8507e85624b41a0d335364b
10 changes: 1 addition & 9 deletions components/collection/unlockable/UnlockableContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ import { collectionId, countDownTime } from './const'
import { UNLOCKABLE_CAMPAIGN, createUnlockableMetadata } from './utils'
import { endOfHour, startOfHour } from 'date-fns'
import { useCountDown } from './utils/useCountDown'
const { redesign } = useExperiments()

const Loader = defineAsyncComponent(
() => import('@/components/collection/unlockable/UnlockableLoader.vue')
Expand All @@ -188,7 +187,7 @@ const resultList = ref<any[]>([])
const selectedImage = ref('')
const MAX_PER_WINDOW = 10
const { urlPrefix } = usePrefix()
const isLoading = ref(redesign.value || false)
const isLoading = ref(false)
const { accountId, isLogIn } = useAuth()
const { hours, minutes, seconds } = useCountDown(countDownTime)
const justMinted = ref('')
Expand All @@ -197,13 +196,6 @@ onMounted(async () => {
const res = await getLatestWaifuImages()
imageList.value = res.result.map((item) => item.output)
resultList.value = res.result

// for preview test
if (redesign.value) {
setTimeout(() => {
justMinted.value = '123'
}, 5000)
}
})

const leftTime = computed(() => {
Expand Down