Skip to content

Commit

Permalink
rename component
Browse files Browse the repository at this point in the history
yuetloo committed Nov 14, 2023

Verified

This commit was signed with the committer’s verified signature.
yuetloo yuetloo
1 parent ce2d9c4 commit 7d1677e
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion vue-app/src/components.d.ts
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ declare module '@vue/runtime-core' {
ContributionModal: typeof import('./components/ContributionModal.vue')['default']
CopyButton: typeof import('./components/CopyButton.vue')['default']
CriteriaModal: typeof import('./components/CriteriaModal.vue')['default']
DatePeriod: typeof import('./components/DatePeriod.vue')['default']
DateRange: typeof import('./components/DateRange.vue')['default']
ErrorModal: typeof import('./components/ErrorModal.vue')['default']
FilterDropdown: typeof import('./components/FilterDropdown.vue')['default']
FormNavigation: typeof import('./components/FormNavigation.vue')['default']
File renamed without changes.
2 changes: 1 addition & 1 deletion vue-app/src/components/RoundInformation.vue
Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@
<div v-if="roundInfo && hasDateElapsed(roundInfo.votingDeadline)" class="round-info-item">
<div class="round-info-title">{{ $t('roundInfo.round_period') }}</div>
<div class="round-info-value">
<date-period :start-date="roundInfo.startTime" :end-date="roundInfo.votingDeadline" />
<date-range :start-date="roundInfo.startTime" :end-date="roundInfo.votingDeadline" />
</div>
</div>
<div class="round-value-info">
2 changes: 1 addition & 1 deletion vue-app/src/views/Leaderboard.vue
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
<div class="header">
<div>
<h2>{{ $t('leaderboard.header') }}</h2>
<date-period
<date-range
class="round-period"
v-if="round"
:start-date="round.startTime"
11 changes: 4 additions & 7 deletions vue-app/src/views/RoundList.vue
Original file line number Diff line number Diff line change
@@ -11,12 +11,11 @@
}"
>
{{ $t('roundList.link1', { index: round.index }) }}
<date-period
<date-range
class="period"
:start-date="DateTime.fromSeconds(round.startTime)"
:end-date="DateTime.fromSeconds(round.votingDeadline)"
>
</date-period>
/>
</links>
<links
v-else
@@ -27,12 +26,11 @@
}"
>
{{ $t('roundList.link1', { index: round.index }) }}
<date-period
<date-range
class="period"
:start-date="DateTime.fromSeconds(round.startTime)"
:end-date="DateTime.fromSeconds(round.votingDeadline)"
>
</date-period>
/>
</links>
</div>
</div>
@@ -42,7 +40,6 @@
import { onMounted, ref } from 'vue'
import { type Round, getRounds } from '@/api/rounds'
import Links from '@/components/Links.vue'
import DatePeriod from '@/components/DatePeriod.vue'
import { DateTime } from 'luxon'
const rounds = ref<Round[]>([])

0 comments on commit 7d1677e

Please sign in to comment.