Skip to content

Commit

Permalink
chore: add categoryOptionGroup to sectionListViewsConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Oct 22, 2024
1 parent 27b639b commit 895bd8d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/fields/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function DateField({
<div style={{ width: '400px' }}>
{/* TODO: we can remove style above, once inputWidth for CalendarInput is fixed */}
<CalendarInput
label={label}
date={input.value}
name={name}
calendar={calendar as CalendarInputProps['calendar']}
Expand All @@ -46,7 +47,6 @@ export function DateField({
validationText={meta.touched && meta.error}
onBlur={(_, e) => input.onBlur(e)}
clearable
label={label}
{...calendarInputProps}
/>
</div>
Expand Down
13 changes: 13 additions & 0 deletions src/lib/sectionList/listViews/sectionListViewsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@ export const modelListViewsConfig = {
default: ['dataDimensionType', 'categoryCombo'],
},
},
categoryOptionGroup: {
columns: {
default: [
'name',
'dataDimensionType',
DESCRIPTORS.publicAccess,
'lastUpdated',
],
},
filters: {
default: ['dataDimensionType'],
},
},
categoryCombo: {
columns: {
default: [
Expand Down

0 comments on commit 895bd8d

Please sign in to comment.