Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess Divers committed Nov 19, 2024
1 parent 452f1f3 commit 315c38f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/lib-components/DateFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const { eventDates, initialDates, hideInput } = defineProps({
type: Object as PropType<SelectedDates>,
default: () => ({ startDate: null, endDate: null }),
},
// if true, the datepicker will be shown in 'inline' mode
// if true, the datepicker will be shown in 'inline' mode all the time, event on desktop
// this option is not currently used on the ftva site
// https://vue3datepicker.com/props/modes/#inline
hideInput: {
type: Boolean,
Expand All @@ -48,6 +49,7 @@ const date = ref<Date[] | Date>([])
const datepicker = ref<DatePickerInstance | null>(null)
const isSelecting = ref(false)
const isOpen = ref(false)
const isMobile = ref(false)
const todayBtnActive = ref(false)
const textConfig = ref({
rangeSeparator: '',
Expand Down Expand Up @@ -187,7 +189,6 @@ watch(date, async (newDate, oldDate) => {
}
})
const isMobile = ref(false)
onMounted(() => {
const { width } = useWindowSize()
watch(width, (newWidth) => {
Expand Down
6 changes: 3 additions & 3 deletions src/stories/DateFilter.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default {
}

const mock = {
hideInput: false,
eventDates: ['2/29/2024', '2/29/2024', '2/29/2024', '2/29/2024', '3/1/2024', '3/2/2024', '3/2/2024', '3/4/2024', '3/6/2024', '3/8/2024', '3/19/2024', '3/19/2024', '3/19/2024', '3/19/2024', '3/19/2024', '3/19/2024',],
}

Expand All @@ -19,10 +18,11 @@ export function Default() {
}
},
components: { DateFilter },
template: '<div style="height:509px"><date-filter :eventDates="eventDates" :hideInput="hideInput"/></div>',
template: '<div style="height:509px"><date-filter :eventDates="eventDates" /></div>',
}
}

/* hideInput prop is not currently used anywhere in the app,
input is hidden automatically on mobile */
const mockNoInput = {
hideInput: true,
eventDates: ['2/29/2024', '2/29/2024', '2/29/2024', '2/29/2024', '3/1/2024', '3/2/2024', '3/2/2024', '3/4/2024', '3/6/2024', '3/8/2024', '3/19/2024', '3/19/2024', '3/19/2024', '3/19/2024', '3/19/2024', '3/19/2024',],
Expand Down

0 comments on commit 315c38f

Please sign in to comment.