Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ayZagen committed May 20, 2024
1 parent 167aaaf commit 04f9b3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ui/components/ResendAction.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import {computed} from 'vue';
import { computed } from 'vue';
import {useContext, useLocale} from '../composables';
import {useTimer} from '../composables/use_timer.ts';
import {secondsToTime} from '../utils';
import { useContext, useLocale } from '../composables';
import { useTimer } from '../composables/use_timer.ts';
import { secondsToTime } from '../utils';
withDefaults(defineProps<{
type?: string
Expand All @@ -12,10 +12,10 @@ withDefaults(defineProps<{
})
const context = useContext()
const {t} = useLocale()
const { t } = useLocale()
const resendLink = `${window.location.pathname}/resend`
const resendAfter = context.details.resend_after as number
const {countdown} = useTimer(Math.floor(resendAfter / 1000) || 0)
const { countdown } = useTimer(Math.floor(resendAfter / 1000) || 0)
const formattedTimer = computed(() => {
return secondsToTime(countdown.value)
})
Expand Down

0 comments on commit 04f9b3f

Please sign in to comment.