-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/complete list logic and implement tests #2
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
base: develop
Are you sure you want to change the base?
Conversation
…ype of dataKey does not match state`
src/components/List/index.tsx
Outdated
export interface Props<T, U = T, V extends EmptyProps = EmptyProps> | ||
extends ListRowsProps<T, U> { | ||
className?: string; | ||
Container?: ComponentType<{ className?: string; children: ReactNode }> | ElementType; |
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 ElementType
just cause type checking ignoring ComponentType<{ className?: string; children: ReactNode }>
. can't we cast div
to solve the problem?
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.
You are right about type checking issue, I fixed this prop type. Now it's possible to set all HTML tags + valid react components that have required props.
Are you Ok with this idea?
No description provided.