From 68d15b80091c3cab75c5a5fe9a6903bbbd6859b4 Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Thu, 10 Sep 2020 17:16:42 -0500 Subject: [PATCH] interface: cleaned up links --- pkg/interface/src/logic/store/store.ts | 2 - pkg/interface/src/views/apps/links/app.js | 2 +- .../views/apps/links/components/link-input.js | 66 ------------------- 3 files changed, 1 insertion(+), 69 deletions(-) delete mode 100644 pkg/interface/src/views/apps/links/components/link-input.js diff --git a/pkg/interface/src/logic/store/store.ts b/pkg/interface/src/logic/store/store.ts index 0d05b07be..8926231cc 100644 --- a/pkg/interface/src/logic/store/store.ts +++ b/pkg/interface/src/logic/store/store.ts @@ -110,7 +110,5 @@ export default class GlobalStore extends BaseStore { this.linkListenReducer.reduce(data, this.state); this.connReducer.reduce(data, this.state); GraphReducer(data, this.state); - - console.log(this.state); } } diff --git a/pkg/interface/src/views/apps/links/app.js b/pkg/interface/src/views/apps/links/app.js index d59e3922e..4266a6e27 100644 --- a/pkg/interface/src/views/apps/links/app.js +++ b/pkg/interface/src/views/apps/links/app.js @@ -95,7 +95,7 @@ export class LinksApp extends Component { const autoJoin = () => { try { - api.links.joinCollection(resource); + // TODO: graph join props.history.push(`/~link/${resource}`); } catch(err) { setTimeout(autoJoin, 2000); diff --git a/pkg/interface/src/views/apps/links/components/link-input.js b/pkg/interface/src/views/apps/links/components/link-input.js deleted file mode 100644 index 04a846172..000000000 --- a/pkg/interface/src/views/apps/links/components/link-input.js +++ /dev/null @@ -1,66 +0,0 @@ -import React, { Component } from 'react'; - -export class LinkDetail extends Component { - - constructor(props) { - super(props); - this.state = { - comment: '', - data: props.data, - disabled: false - }; - } - - onClickPost() { - const url = this.props.url || ''; - // TODO: use graph API - this.props.api.links.postComment( - this.props.resourcePath, - url, - this.state.comment - ).then(() => { - this.setState({ comment: '', disabled: false }); - }); - } - - render() { - const activeClasses = this.state.comment - ? 'black white-d pointer' - : 'gray2 b--gray2'; - - - return ( -
-
-