Skip to content

Commit

Permalink
Merge pull request #1404 from bcgov/fix/daniel-remove-date-filters-1267
Browse files Browse the repository at this point in the history
fix: Remove filtering on Date Columns
  • Loading branch information
dhaselhan authored Dec 9, 2024
2 parents a07af3a + 49350ff commit f437eec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
4 changes: 2 additions & 2 deletions frontend/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import theme from '@/themes'
import './i18n'
import { KeycloakProvider } from '@/components/KeycloakProvider'
import { getKeycloak } from '@/utils/keycloak'
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'
import { LocalizationProvider } from '@mui/x-date-pickers'
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3'

const queryClient = new QueryClient()
const keycloak = getKeycloak()
Expand All @@ -19,7 +19,7 @@ if (root) {
<KeycloakProvider authClient={keycloak}>
<QueryClientProvider client={queryClient}>
<ThemeProvider theme={theme}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<LocalizationProvider dateAdapter={AdapterDateFns}>
<CssBaseline />
<App />
</LocalizationProvider>
Expand Down
28 changes: 4 additions & 24 deletions frontend/src/views/FuelCodes/_schema.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,45 +76,25 @@ export const fuelCodeColDefs = (t) => [
{
field: 'applicationDate',
headerName: t('fuelCode:fuelCodeColLabels.applicationDate'),
filter: 'agDateColumnFilter',
filterParams: {
filterOptions: ['equals', 'lessThan', 'greaterThan', 'inRange'],
suppressAndOrCondition: true,
maxValidYear: 2400
},
filter: false,
cellRenderer: TextRenderer
},
{
field: 'approvalDate',
headerName: t('fuelCode:fuelCodeColLabels.approvalDate'),
filter: 'agDateColumnFilter',
filterParams: {
filterOptions: ['equals', 'lessThan', 'greaterThan', 'inRange'],
suppressAndOrCondition: true,
maxValidYear: 2400
},
filter: false,
cellRenderer: TextRenderer
},
{
field: 'effectiveDate',
headerName: t('fuelCode:fuelCodeColLabels.effectiveDate'),
filter: 'agDateColumnFilter',
filterParams: {
filterOptions: ['equals', 'lessThan', 'greaterThan', 'inRange'],
suppressAndOrCondition: true,
maxValidYear: 2400
},
filter: false,
cellRenderer: TextRenderer
},
{
field: 'expirationDate',
headerName: t('fuelCode:fuelCodeColLabels.expirationDate'),
filter: 'agDateColumnFilter',
filterParams: {
filterOptions: ['equals', 'lessThan', 'greaterThan', 'inRange'],
suppressAndOrCondition: true,
maxValidYear: 2400
},
filter: false,
cellRenderer: TextRenderer
},
{
Expand Down

0 comments on commit f437eec

Please sign in to comment.