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: add header prop to the textarea component #1807

Merged
merged 5 commits into from
Sep 7, 2020

Conversation

amontalvof
Copy link
Collaborator

fix: #1799

Changes proposed in this PR:

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Sep 4, 2020

Features

  • add header prop to the textarea component (c0ac1c8)
  • fixed styles in readme example header textarea (a2975a6)

Contributors

@amontalvof, @TahimiLeonBravo, @LeandroTorresSicilia

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


function TextareaExample(props) {
const [count, setCount] = useState(0);
const maxLength = props.maxLength;

Choose a reason for hiding this comment

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

here you can use destructuring:
const { maxLength } = props;

<StyledHeader>
<Chip
onDelete={() => alert('Delete Chip!')}
style={{width:'100%'}}

Choose a reason for hiding this comment

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

to be consistent with the example don't use styles inline, instead use a styled component

@codeclimate
Copy link

codeclimate bot commented Sep 7, 2020

Code Climate has analyzed commit 1d47ab4 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@LeandroTorresSicilia LeandroTorresSicilia merged commit 093acec into master Sep 7, 2020
@LeandroTorresSicilia LeandroTorresSicilia deleted the add-header-prop-to-the-textarea branch September 7, 2020 15:20
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: add header prop to the Textarea component
3 participants