-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: types for React 18 #1422
fix: types for React 18 #1422
Conversation
@@ -28,7 +28,7 @@ const RangeContainer: React.FC<RangeContainerProps> = ({ | |||
const restProps = omitSubset(props, propTypes.space); | |||
|
|||
return ( | |||
<Flex {...spaceProps} flexDirection="column"> | |||
(<Flex {...spaceProps} flexDirection="column"> |
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.
Seems like an unintended change
src/NavBar/NavBar.tsx
Outdated
@@ -208,7 +208,7 @@ const SelectNavBarBasedOnWidth = ({ width, defaultOpen, breakpointUpper, ...prop | |||
} else { | |||
return ( | |||
// @ts-ignore | |||
<SmallNavBar {...props} width={currentWidth} defaultOpen={defaultOpen} /> | |||
(<SmallNavBar {...props} width={currentWidth} defaultOpen={defaultOpen} />) |
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.
Unintended change
const { colors } = useTheme(); | ||
|
||
const color1 = inactive ? colors.grey : colors.blue; | ||
const color2 = inactive ? colors.lightGrey : colors.yellow; | ||
|
||
return ( | ||
// Modified svg By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL | ||
<svg | ||
(<svg |
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.
Unintended change
1cc12ca
to
5af6663
Compare
Result of running: npx types-react-codemod preset-18 ./src Pick transforms to apply (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed) ◯ context-any ◉ deprecated-react-type ◉ deprecated-sfc-element ◉ deprecated-sfc ◉ deprecated-stateless-component ◉ implicit-children ◯ useCallback-implicit-any
5af6663
to
139e8f5
Compare
🎉 This PR is included in version 10.2.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Result of running:
Changes include
Feature checklist