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

Develop #1768

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Develop #1768

wants to merge 5 commits into from

Conversation

keex1k
Copy link

@keex1k keex1k commented Jul 31, 2024

src/App.tsx Outdated

render() {
const title =
this.state.selectedGood === '' ? (

Choose a reason for hiding this comment

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

destructure state so you don't need to repeat this.state every time ;)

src/App.tsx Outdated
Comment on lines 61 to 65
className={
this.state.selectedGood === good
? 'has-background-success-light'
: ''
}

Choose a reason for hiding this comment

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

use classnames library to improve readability of conditional classes

src/App.tsx Outdated
data-cy="RemoveButton"
type="button"
className="button is-info"
onClick={() => this.deleteGood()}

Choose a reason for hiding this comment

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

checklist: If your method don't get any argument, you don't need to create new arrow function. Just pass your method.

src/App.tsx Outdated



<tr data-cy="Good" className="has-background-success-light">

Choose a reason for hiding this comment

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

delete all comments

Copy link

@natalia-klonowska natalia-klonowska left a comment

Choose a reason for hiding this comment

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

Great work 🔥

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.

2 participants