-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove filter props #2412
Remove filter props #2412
Conversation
import faker from 'faker'; | ||
import { css } from '@linaria/core'; | ||
|
||
import DataGrid from '../../src'; | ||
import type { Column, Filters } from '../../src'; | ||
import { NumericFilter } from './components/Filters'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think NumericFilter
is complex and not needed for examples.
@@ -1,11 +1,10 @@ | |||
import { useMemo, useState } from 'react'; | |||
import Select from 'react-select'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed react-select
filter and using datalist
instead to keep things simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use react-select
at all anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used in one of the editors. We can remove it in the next PR
stories/demos/HeaderFilters.tsx
Outdated
onChange={(e) => | ||
setFilters({ | ||
...filters, | ||
complete: Number.isFinite(e.target.valueAsNumber) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL e.target.valueAsNumber
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
@@ -1,11 +1,10 @@ | |||
import { useMemo, useState } from 'react'; | |||
import Select from 'react-select'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use react-select
at all anymore?
stories/demos/HeaderFilters.tsx
Outdated
onChange={(e) => | ||
setFilters({ | ||
...filters, | ||
complete: Number.isFinite(e.target.valueAsNumber) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before
After