Skip to content

Commit

Permalink
rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Nov 14, 2023
1 parent ce2d9c4 commit 7d1677e
Show file tree
Hide file tree
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
Expand Up @@ -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']
Expand Down
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
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion vue-app/src/views/Leaderboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 4 additions & 7 deletions vue-app/src/views/RoundList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>
Expand All @@ -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[]>([])
Expand Down

0 comments on commit 7d1677e

Please sign in to comment.