add badge
This commit is contained in:
@@ -33,9 +33,10 @@ import { Kbd } from '@repo/ui/components/ui/kbd'
|
||||
import { Currency } from '@repo/ui/components/currency'
|
||||
import { DateTime } from '@repo/ui/components/datetime'
|
||||
|
||||
import { TZ } from '@/conf'
|
||||
import { billingPeriod, formatDate } from './util'
|
||||
import { RangePeriod } from './range-period'
|
||||
import { tz, statuses } from './data'
|
||||
import { statuses } from './data'
|
||||
|
||||
export function meta({}) {
|
||||
return [{ title: 'Resumo de cobranças' }]
|
||||
@@ -55,7 +56,7 @@ export async function loader({ context, request, params }: Route.LoaderArgs) {
|
||||
|
||||
const [startDate, endDate] = billingPeriod(
|
||||
billing_day,
|
||||
LuxonDateTime.now().setZone(tz).toJSDate()
|
||||
LuxonDateTime.now().setZone(TZ).toJSDate()
|
||||
)
|
||||
const start = searchParams.get('start') || formatDate(startDate)
|
||||
const end = searchParams.get('end') || formatDate(endDate)
|
||||
@@ -69,8 +70,8 @@ export async function loader({ context, request, params }: Route.LoaderArgs) {
|
||||
return {
|
||||
billing_day,
|
||||
billing,
|
||||
startDate: LuxonDateTime.fromISO(start, { zone: tz }).toJSDate(),
|
||||
endDate: LuxonDateTime.fromISO(end, { zone: tz }).toJSDate()
|
||||
startDate: LuxonDateTime.fromISO(start, { zone: TZ }).toJSDate(),
|
||||
endDate: LuxonDateTime.fromISO(end, { zone: TZ }).toJSDate()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user