Skip to content

Conversation

@DaminovN
Copy link

No description provided.

@vercel
Copy link

vercel bot commented May 23, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://task-5-git-fork-daminovn-master.itmo-yandex.now.sh

@evgenymarkov evgenymarkov self-requested a review May 23, 2019 16:00
@evgenymarkov evgenymarkov self-assigned this May 23, 2019

this.authors = ['Антон', 'Саша', 'Алексей'];
this.subject = ['Путешествие', 'Стажировка', 'Виза'];
this.text = [

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}

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';

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"

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()}

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' : '';

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

@evgenymarkov evgenymarkov removed their assignment Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants