groups: remove dummy 'share' flow, 'default' group

This commit is contained in:
Matilde Park 2020-03-04 14:55:20 -05:00
parent aee2496588
commit 061deb94a8
2 changed files with 3 additions and 11 deletions

View File

@ -496,8 +496,6 @@ export class ContactCard extends Component {
) ? "dib" : "dn";
let card = state.edit ? this.renderEditCard() : this.renderCard();
//TODO "Share card" if it's /me -> sends to /~/default of recipient
return (
<div className="w-100 h-100 overflow-hidden">
<div className={"flex justify-between w-100 bg-white bg-gray0-d " +
@ -517,9 +515,6 @@ export class ContactCard extends Component {
className={`white-d bg-gray0-d ml3 mt2 mb2 f9 pa1 pointer ` + ourOpt}>
{editInfoText}
</button>
<button className={`white-d bg-gray0-d ml3 mt2 mb2 f9 pa1 pointer ` + localOpt}>
Share
</button>
</div>
<button
className={

View File

@ -52,17 +52,14 @@ export class GroupSidebar extends Component {
Object.keys(props.contacts)
.filter((path) => {
return (
(!path.startsWith("/~/") || path === "/~/default") &&
(!path.startsWith("/~/")) &&
(path in props.groups)
);
})
.map((path) => {
let name = path.substr(1);
let nameSeparator = name.indexOf("/");
(name === "/~/default")
? name = name.substr(2)
: name = name.substr(nameSeparator + 1); // hides owner of list from UI
// if unwanted, remove this
name = name.substr(nameSeparator + 1);
let selected = (this.props.selected === path);
return (
<GroupItem
@ -87,7 +84,7 @@ export class GroupSidebar extends Component {
<Link to="/~groups/new" className="dib">
<p className="f9 pt4 pl4 green2 bn">Create Group</p>
</Link>
<h2 className="f9 pt6 pr4 pb2 pl4 gray2 c-default">Root Identity</h2>
<h2 className="f9 pt6 pr4 pb2 pl4 gray2 c-default">Your Identity</h2>
{rootIdentity}
{inviteItems}
<h2 className="f9 pt3 pr4 pb2 pl4 gray2 c-default">Groups</h2>