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 {
const edit = window.i18n('edit');
const addChannel = window.i18n('addChannel');
const showEditButton = false;
return (
<div className="left-pane-contact-bottom-buttons">
<SessionButton
{showEditButton && <SessionButton
text={edit}
buttonType={SessionButtonType.SquareOutline}
buttonColor={SessionButtonColor.White}
/>
/>}
<SessionButton
text={addChannel}
buttonType={SessionButtonType.SquareOutline}

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

Loading…
Cancel
Save