-
Notifications
You must be signed in to change notification settings - Fork 36
Даминов Нодир М3339 #31
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
base: master
Are you sure you want to change the base?
Conversation
|
This pull request is automatically deployed with Now. Latest deployment for this branch: https://task-5-git-fork-daminovn-master.itmo-yandex.now.sh |
|
|
||
| this.authors = ['Антон', 'Саша', 'Алексей']; | ||
| this.subject = ['Путешествие', 'Стажировка', 'Виза']; | ||
| this.text = [ |
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.
Бизнес-логику лучше отделять от UI
| return ( | ||
| <section className="page__ya-mail"> | ||
| <ContentTopBar | ||
| deleteSelected={this.props.deleteSelected} |
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.
onDeleteSelected
|
|
||
| import './message-text.css'; | ||
|
|
||
| import Round from '../../../../images/round.png'; |
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.
Хранить ресурсы можно рядом с компонентом, а компоненты укладывать в плоскую структуру
| /> | ||
| <label | ||
| className="message-open" | ||
| htmlFor="message-select1" |
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.
input и label не связаны, аккуратнее с id
| type="checkbox" | ||
| checked={this.props.allSelected} | ||
| className="page_checkbox ya-mail__select-all-check" | ||
| onChange={() => this.props.selectAll()} |
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.
Можно убрать стрелочные в таком случае
|
|
||
| export class Message extends Component { | ||
| render() { | ||
| const addAnimation = this.props.message.addAnimation ? ' create_animation' : ''; |
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.
b_
bem-cn
bem-react/classname
No description provided.