lint typecheck

This commit is contained in:
Anthony Stirling
2025-10-31 09:42:56 +00:00
parent bb2b321b28
commit 6be4c98f7c
2 changed files with 8 additions and 8 deletions

View File

@@ -131,8 +131,8 @@ const AuditEventsTable: React.FC<AuditEventsTableProps> = () => {
<DateInput
placeholder={t('audit.events.startDate', 'Start date')}
value={filters.startDate ? new Date(filters.startDate) : null}
onChange={(value: Date | null) =>
handleFilterChange('startDate', value ? value.toISOString() : undefined)
onChange={(value: string | null) =>
handleFilterChange('startDate', value ?? undefined)
}
clearable
style={{ flex: 1, minWidth: 150 }}
@@ -141,8 +141,8 @@ const AuditEventsTable: React.FC<AuditEventsTableProps> = () => {
<DateInput
placeholder={t('audit.events.endDate', 'End date')}
value={filters.endDate ? new Date(filters.endDate) : null}
onChange={(value: Date | null) =>
handleFilterChange('endDate', value ? value.toISOString() : undefined)
onChange={(value: string | null) =>
handleFilterChange('endDate', value ?? undefined)
}
clearable
style={{ flex: 1, minWidth: 150 }}

View File

@@ -144,8 +144,8 @@ const AuditExportSection: React.FC<AuditExportSectionProps> = () => {
<DateInput
placeholder={t('audit.export.startDate', 'Start date')}
value={filters.startDate ? new Date(filters.startDate) : null}
onChange={(value: Date | null) =>
handleFilterChange('startDate', value ? value.toISOString() : undefined)
onChange={(value: string | null) =>
handleFilterChange('startDate', value ?? undefined)
}
clearable
style={{ flex: 1, minWidth: 200 }}
@@ -154,8 +154,8 @@ const AuditExportSection: React.FC<AuditExportSectionProps> = () => {
<DateInput
placeholder={t('audit.export.endDate', 'End date')}
value={filters.endDate ? new Date(filters.endDate) : null}
onChange={(value: Date | null) =>
handleFilterChange('endDate', value ? value.toISOString() : undefined)
onChange={(value: string | null) =>
handleFilterChange('endDate', value ?? undefined)
}
clearable
style={{ flex: 1, minWidth: 200 }}