-
Notifications
You must be signed in to change notification settings - Fork 9
864 - [Tick] The component is receving not recognize props causing a console warning #868
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
Conversation
This commit updates the renderAxis function in the Chart component to convert tick props using the convertTickProps function. This ensures that tick rendering is consistent.
src/components/Chart/renderAxis.tsx
Outdated
@@ -139,8 +144,7 @@ function getAxisProps( | |||
} | |||
} | |||
|
|||
// TODO: Talvez o problema da outra issue esteja aquitalvez o problema esteja aqui | |||
const convertTickProps = (props: any): TickProps => ({ | |||
export const convertTickProps = (props: any): TickProps => ({ |
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.
Since it is now being used by more than one file, it could be moved to a common file, like util.ts
or model.ts
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.
☝️
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 good. Just remember to follow the bold code patterns, not the PEC ones.
src/components/Chart/renderAxis.tsx
Outdated
@@ -139,8 +144,7 @@ function getAxisProps( | |||
} | |||
} | |||
|
|||
// TODO: Talvez o problema da outra issue esteja aquitalvez o problema esteja aqui | |||
const convertTickProps = (props: any): TickProps => ({ | |||
export const convertTickProps = (props: any): TickProps => ({ |
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.
☝️
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.
Thank you! 😊
The base branch was changed.
depends on #863
closes #864