update id
This commit is contained in:
@@ -20,7 +20,6 @@ import {
|
||||
PopoverContent,
|
||||
PopoverTrigger
|
||||
} from '@repo/ui/components/ui/popover'
|
||||
|
||||
import { Separator } from '@repo/ui/components/ui/separator'
|
||||
import { cn } from '@repo/ui/lib/utils'
|
||||
|
||||
@@ -55,11 +54,16 @@ export function RangeCalendarFilter({
|
||||
const [rangeField, setRangeField] = useState<string | undefined>(
|
||||
value?.rangeField || options?.[0]?.value
|
||||
)
|
||||
|
||||
const [dateRange, setDateRange] = useState<DateRange | undefined>(
|
||||
value?.dateRange
|
||||
)
|
||||
|
||||
const handleReset = () => {
|
||||
onChange?.(undefined)
|
||||
setRangeField(options?.[0]?.value)
|
||||
setDateRange(undefined)
|
||||
}
|
||||
|
||||
return (
|
||||
<Popover>
|
||||
<div
|
||||
@@ -157,10 +161,7 @@ export function RangeCalendarFilter({
|
||||
<Button
|
||||
variant="ghost"
|
||||
className="w-full cursor-pointer font-normal"
|
||||
onClick={() => {
|
||||
onChange?.(undefined)
|
||||
setDateRange(undefined)
|
||||
}}
|
||||
onClick={handleReset}
|
||||
>
|
||||
Limpar
|
||||
</Button>
|
||||
|
||||
@@ -35,7 +35,9 @@ export function request({
|
||||
Object.assign({ Authorization: `Bearer ${user.accessToken}` }, _headers)
|
||||
)
|
||||
|
||||
console.log(`[${requestId}] ${method} ${url_.toString()}`)
|
||||
console.log(
|
||||
`[${new Date().toISOString()}] [${requestId}] ${method} ${url_.toString()}`
|
||||
)
|
||||
|
||||
return fetch(url_.toString(), { method, headers, body, signal })
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export const columns: ColumnDef<Enrollment>[] = [
|
||||
|
||||
return (
|
||||
<div className="flex gap-2.5 items-center">
|
||||
<Avatar className="size-12">
|
||||
<Avatar className="size-10 hidden lg:block">
|
||||
<AvatarFallback>{initials(user.name)}</AvatarFallback>
|
||||
</Avatar>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export const columns: ColumnDef<User>[] = [
|
||||
|
||||
return (
|
||||
<div className="flex gap-2.5 items-center">
|
||||
<Avatar className="size-12">
|
||||
<Avatar className="size-10 hidden lg:block">
|
||||
<AvatarFallback>{initials(name)}</AvatarFallback>
|
||||
</Avatar>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user