-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[core] Fix some errors when porting demos to TypeScript #12417
Changes from 3 commits
d967671
f9c15e5
e61ec4e
51a2b10
cd16f04
0a89981
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 |
---|---|---|
|
@@ -20,12 +20,12 @@ export type PopperPlacementType = | |
export interface PopperProps extends React.HTMLAttributes<HTMLDivElement> { | ||
transition?: boolean; | ||
anchorEl?: null | HTMLElement | ReferenceObject | ((element: HTMLElement) => HTMLElement); | ||
children: ( | ||
children: React.ReactElement<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. It can be a node, I believe we should be using 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. done |
||
props: { | ||
placement: PopperPlacementType; | ||
TransitionProps?: TransitionProps; | ||
}, | ||
) => React.ReactElement<any>; | ||
) => React.ReactElement<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.
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. done |
||
container?: PortalProps['container']; | ||
disablePortal?: PortalProps['disablePortal']; | ||
keepMounted?: boolean; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ export interface RadioGroupProps | |
name?: string; | ||
onChange?: (event: React.ChangeEvent<{}>, value: string) => void; | ||
value?: string; | ||
ref?; | ||
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. Something is wrong, 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. Removed, my mistake |
||
} | ||
|
||
export type RadioGroupClassKey = FormGroupClassKey; | ||
|
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 can run
yarn prettier
to fix the code style.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.
done