mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-13 02:18:16 +01:00
lint typecheck
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user