mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-01-14 20:11:17 +01:00
lint
This commit is contained in:
parent
6d98b0b209
commit
bb2b321b28
@ -192,7 +192,7 @@ export default function Workbench() {
|
||||
</Box>
|
||||
|
||||
<Footer
|
||||
analyticsEnabled={config?.enableAnalytics}
|
||||
analyticsEnabled={config?.enableAnalytics ?? undefined}
|
||||
termsAndConditions={config?.termsAndConditions}
|
||||
privacyPolicy={config?.privacyPolicy}
|
||||
cookiePolicy={config?.cookiePolicy}
|
||||
|
||||
@ -131,7 +131,7 @@ const AuditEventsTable: React.FC<AuditEventsTableProps> = () => {
|
||||
<DateInput
|
||||
placeholder={t('audit.events.startDate', 'Start date')}
|
||||
value={filters.startDate ? new Date(filters.startDate) : null}
|
||||
onChange={(value) =>
|
||||
onChange={(value: Date | null) =>
|
||||
handleFilterChange('startDate', value ? value.toISOString() : undefined)
|
||||
}
|
||||
clearable
|
||||
@ -141,7 +141,7 @@ const AuditEventsTable: React.FC<AuditEventsTableProps> = () => {
|
||||
<DateInput
|
||||
placeholder={t('audit.events.endDate', 'End date')}
|
||||
value={filters.endDate ? new Date(filters.endDate) : null}
|
||||
onChange={(value) =>
|
||||
onChange={(value: Date | null) =>
|
||||
handleFilterChange('endDate', value ? value.toISOString() : undefined)
|
||||
}
|
||||
clearable
|
||||
|
||||
@ -144,7 +144,7 @@ const AuditExportSection: React.FC<AuditExportSectionProps> = () => {
|
||||
<DateInput
|
||||
placeholder={t('audit.export.startDate', 'Start date')}
|
||||
value={filters.startDate ? new Date(filters.startDate) : null}
|
||||
onChange={(value) =>
|
||||
onChange={(value: Date | null) =>
|
||||
handleFilterChange('startDate', value ? value.toISOString() : undefined)
|
||||
}
|
||||
clearable
|
||||
@ -154,7 +154,7 @@ const AuditExportSection: React.FC<AuditExportSectionProps> = () => {
|
||||
<DateInput
|
||||
placeholder={t('audit.export.endDate', 'End date')}
|
||||
value={filters.endDate ? new Date(filters.endDate) : null}
|
||||
onChange={(value) =>
|
||||
onChange={(value: Date | null) =>
|
||||
handleFilterChange('endDate', value ? value.toISOString() : undefined)
|
||||
}
|
||||
clearable
|
||||
|
||||
@ -19,7 +19,7 @@ const SimpleBarChart: React.FC<SimpleBarChartProps> = ({ data, maxValue }) => {
|
||||
) : (
|
||||
data.map((item, index) => (
|
||||
<div key={index}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between' }} mb={4}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '4px' }}>
|
||||
<Text
|
||||
size="xs"
|
||||
c="dimmed"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user