This commit is contained in:
Anthony Stirling 2025-10-31 09:38:46 +00:00
parent 6d98b0b209
commit bb2b321b28
4 changed files with 6 additions and 6 deletions

View File

@ -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}

View File

@ -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

View File

@ -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

View File

@ -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"