Skip to content

Commit

Permalink
New group/channel fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-nadymov committed Apr 20, 2020
1 parent dfe827b commit c50127f
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 37 deletions.
7 changes: 7 additions & 0 deletions src/Components/ColumnLeft/AddParticipants.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2018-present, Evgeny Nadymov
*
* This source code is licensed under the GPL v.3.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

21 changes: 21 additions & 0 deletions src/Components/ColumnLeft/AddParticipants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2018-present, Evgeny Nadymov
*
* This source code is licensed under the GPL v.3.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import PropTypes from 'prop-types';

class AddParticipants extends React.Component {

render() {

}

}

AddParticipants.propTypes = {};

export default AddParticipants;
44 changes: 23 additions & 21 deletions src/Components/ColumnLeft/NewChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,29 @@ class NewChannel extends React.Component {
<span className='header-status-content'>{t('NewChannel')}</span>
</div>
</div>
<div className='sidebar-page-content new-chat-content'>
<NewChatPhoto onChoose={this.handleChoosePhoto}/>
<div className='new-chat-title'>
<TextField
inputRef={this.titleRef}
error={error}
className='new-chat-input'
variant='outlined'
fullWidth
label={t('EnterChannelName')}
defaultValue={''}
/>
<TextField
inputRef={this.descriptionRef}
className='new-chat-input'
variant='outlined'
fullWidth
label={t('DescriptionOptionalPlaceholder')}
defaultValue={''}
/>
<div className='edit-profile-hint'>{t('DescriptionInfo')}</div>
<div className='sidebar-page-content'>
<div className='new-chat-content'>
<NewChatPhoto onChoose={this.handleChoosePhoto}/>
<div className='new-chat-title'>
<TextField
inputRef={this.titleRef}
error={error}
className='new-chat-input'
variant='outlined'
fullWidth
label={t('EnterChannelName')}
defaultValue={''}
/>
<TextField
inputRef={this.descriptionRef}
className='new-chat-input'
variant='outlined'
fullWidth
label={t('DescriptionOptionalPlaceholder')}
defaultValue={''}
/>
<div className='edit-profile-hint'>{t('DescriptionInfo')}</div>
</div>
</div>
</div>

Expand Down
32 changes: 17 additions & 15 deletions src/Components/ColumnLeft/NewGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,25 @@ class NewGroup extends React.Component {
<span className='header-status-content'>{t('NewGroup')}</span>
</div>
</div>
<div className='sidebar-page-content new-chat-content'>
<NewChatPhoto onChoose={this.handleChoosePhoto}/>
<div className='new-chat-title'>
<TextField
inputRef={this.titleRef}
error={error}
className='new-chat-input'
variant='outlined'
fullWidth
label={t('GroupName')}
defaultValue={''}
/>
</div>
{/*<div className='sidebar-page-section'>*/}
<div className='sidebar-page-content'>
<div className='new-chat-content'>
<NewChatPhoto onChoose={this.handleChoosePhoto}/>
<div className='new-chat-title'>
<TextField
inputRef={this.titleRef}
error={error}
className='new-chat-input'
variant='outlined'
fullWidth
label={t('GroupName')}
defaultValue={''}
/>
</div>
{/*<div className='sidebar-page-section'>*/}
<SectionHeader>{itemsCaption}</SectionHeader>
{items}
{/*</div>*/}
{/*</div>*/}
</div>
</div>

<div className='new-chat-bottom-button' onClick={this.handleDone}>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Popup/SidebarDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class SidebarDialog extends React.Component {
<DialogsHeader
ref={this.headerRef}
openSearch={true}
timeout={0}
timeout={false}
onClick={this.handleHeaderClick}
onSearch={this.handleSearch}
onSearchTextChange={this.handleSearchTextChange}
Expand Down

0 comments on commit c50127f

Please sign in to comment.