-
Notifications
You must be signed in to change notification settings - Fork 590
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
add modal context to panel and operator views & fix zIndex of ArrowNavView #5052
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ export type ViewPropsType<Schema extends SchemaType = SchemaType> = { | |
ROWS: number; | ||
}; | ||
autoFocused?: React.MutableRefObject<boolean>; | ||
otherProps: { [key: string]: any }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider using a more specific type for Instead of using a loose index signature with - otherProps: { [key: string]: any };
+ otherProps: {
+ isModalPanel?: boolean;
+ // Add other known properties here
+ };
|
||
}; | ||
|
||
export type CustomComponentsType = { | ||
|
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.
Update type definitions for better type safety.
The component's props type definition doesn't match its usage. The
otherProps
is implicitly typed asany
, which bypasses TypeScript's type checking benefits.Apply this diff to improve type safety:
Also, consider extracting the zIndex values as named constants:
Also applies to: 25-26