hide edit button on leftpane

pull/725/head
Audric Ackermann 5 years ago
parent 5207e00063
commit 68e4f318f3

@ -270,14 +270,15 @@ export class LeftPaneChannelSection extends React.Component<Props, State> {
private renderBottomButtons(): JSX.Element { private renderBottomButtons(): JSX.Element {
const edit = window.i18n('edit'); const edit = window.i18n('edit');
const addChannel = window.i18n('addChannel'); const addChannel = window.i18n('addChannel');
const showEditButton = false;
return ( return (
<div className="left-pane-contact-bottom-buttons"> <div className="left-pane-contact-bottom-buttons">
<SessionButton {showEditButton && <SessionButton
text={edit} text={edit}
buttonType={SessionButtonType.SquareOutline} buttonType={SessionButtonType.SquareOutline}
buttonColor={SessionButtonColor.White} buttonColor={SessionButtonColor.White}
/> />}
<SessionButton <SessionButton
text={addChannel} text={addChannel}
buttonType={SessionButtonType.SquareOutline} buttonType={SessionButtonType.SquareOutline}

@ -276,14 +276,15 @@ export class LeftPaneContactSection extends React.Component<Props, State> {
const edit = window.i18n('edit'); const edit = window.i18n('edit');
const addContact = window.i18n('addContact'); const addContact = window.i18n('addContact');
const createGroup = window.i18n('createGroup'); const createGroup = window.i18n('createGroup');
const showEditButton = false;
return ( return (
<div className="left-pane-contact-bottom-buttons"> <div className="left-pane-contact-bottom-buttons">
<SessionButton {showEditButton && <SessionButton
text={edit} text={edit}
buttonType={SessionButtonType.SquareOutline} buttonType={SessionButtonType.SquareOutline}
buttonColor={SessionButtonColor.White} buttonColor={SessionButtonColor.White}
/> />}
{selectedTab === 0 ? ( {selectedTab === 0 ? (
<SessionButton <SessionButton
text={addContact} text={addContact}

Loading…
Cancel
Save