Skip to content

feat(popup-header): add popup-header component #174

Merged
merged 1 commit into from
Jul 21, 2017
Merged

Conversation

artptr
Copy link
Contributor

@artptr artptr commented Jul 20, 2017

Компонент заголовка для попапа.

default

Мотивация и контекст

Выносим типовой хедер на уровень компонента для переиспользования в типичных полноэкранных попапах — select, calendar-input и т.п.

@@ -0,0 +1,10 @@
```
Copy link
Member

Choose a reason for hiding this comment

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

Я думаю нужно показывать в сборке с popup-ом.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Заменить или дополнить?

Copy link
Member

Choose a reason for hiding this comment

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

Я бы добавил.

className={ cn('closer') }
size={ this.props.size }
icon='close'
onClick={ this.props.onCloseClick }
Copy link
Member

Choose a reason for hiding this comment

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

ноу. через handler и проверку есть или нет внешнего пропса, иначе будет ошибка, если обработчик непередан.

) }
visible={ this.state.popup }
>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit,</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Сделай пожалуйста осмысленную демку на русском языке. Запрос от дизайнера

@GREENpoint GREENpoint merged commit 2714c4c into master Jul 21, 2017
@GREENpoint GREENpoint deleted the feat/popup-header branch July 31, 2017 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants