Skip to content
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

Feature/cele 27 Layout manager wrapper component #9

Merged
merged 7 commits into from
Jun 4, 2024

Conversation

vidhya-metacell
Copy link

Screen Shot 2024-05-28 at 3 51 51 PM Screen Shot 2024-05-28 at 3 51 35 PM Screen Shot 2024-05-28 at 3 51 30 PM

@vidhya-metacell vidhya-metacell requested a review from aranega May 28, 2024 13:53
@vidhya-metacell vidhya-metacell self-assigned this May 28, 2024
Copy link
Member

@aranega aranega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @vidhya-metacell ! All looks good to me. There is only a small issue while compiling the project, almost nothing, either some default value missing, or the parameters of a component to declare as optional and it should be perfect like this :)

@@ -5,7 +5,7 @@ import { useState } from "react";

const { white, brand600, gray100 } = vars;

const CustomSwitch = () => {
const CustomSwitch = ({width, height, thumbDimension, checkedPosition}) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the signature of the component changed, the new parameters should be also added when it is used in this component (here).

I can see that the parameter are kind of optional, so to not modify the CustomListItem component to add the parameters, another solution would be to define default values, or an interface stating that the fields are optional :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @aranega , thanks for the suggestion. It makes sense. I have made the changes.

Copy link
Member

@aranega aranega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@ddelpiano ddelpiano merged commit c87f26c into develop Jun 4, 2024
4 checks passed
@ddelpiano ddelpiano deleted the feature/CELE-27 branch June 4, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants