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

feat: implement hideTableHeader prop in table component #1818

Conversation

lyon93
Copy link
Contributor

@lyon93 lyon93 commented Sep 12, 2020

fix: #1793

Changes proposed in this PR:

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Sep 12, 2020

Features

  • implement hideTableHeader prop in table component (2d4830d)

Contributors

@lyon93

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@codeclimate
Copy link

codeclimate bot commented Sep 12, 2020

Analysis results are not available for those commits

View more on Code Climate.

Copy link
Contributor

@yvmunayev yvmunayev left a comment

Choose a reason for hiding this comment

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

@lyon93 I think a more optimal solution would be to use RenderIf at the thead level

@LeandroTorresSicilia
Copy link
Member

@lyon93 check here there are conflicts

@TahimiLeonBravo
Copy link
Collaborator

@lyon93 please check the conflicts that you have, need be resolved

const component = mount(<Head columns={columns} />);
const header = component.find('Header');
expect(header.at(0).prop('hideTableHeader')).toBeFalsy();
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

these tests ^^ should check the header is not visible, checking the prop value when is being passed is testing React :) .. not the component behavior.

Although, the implementation of the feature looks good to me

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.

feat: implement hideTableHeader prop on the Table component
5 participants