Merge remote-tracking branch 'origin/main' into efril

This commit is contained in:
efrilm
2025-08-14 02:08:24 +07:00
8 changed files with 74 additions and 30 deletions
@@ -14,7 +14,7 @@ import ReportHeader from '@/views/dashboards/daily-report/report-header'
import React, { useEffect, useRef, useState } from 'react'
const DailyPOSReport = () => {
const reportRef = useRef<HTMLElement | null>(null)
const reportRef = useRef<HTMLDivElement | null>(null)
const [now, setNow] = useState(new Date())
const [selectedDate, setSelectedDate] = useState(new Date())
@@ -22,7 +22,7 @@ const DailyPOSReport = () => {
startDate: new Date(),
endDate: new Date()
})
const [filterType, setFilterType] = useState('single') // 'single' or 'range'
const [filterType, setFilterType] = useState<'single' | 'range'>('single') // 'single' or 'range'
// Use selectedDate for single date filter, or dateRange for range filter
const getDateParams = () => {