diff --git a/pkg/arvo/app/publish/img/Home.png b/pkg/arvo/app/publish/img/Spinner.png similarity index 100% rename from pkg/arvo/app/publish/img/Home.png rename to pkg/arvo/app/publish/img/Spinner.png diff --git a/pkg/interface/publish/src/js/api.js b/pkg/interface/publish/src/js/api.js index 47a1fc4b41..f5e874bc27 100644 --- a/pkg/interface/publish/src/js/api.js +++ b/pkg/interface/publish/src/js/api.js @@ -130,15 +130,6 @@ class UrbitApi { }); } - setSpinner(boolean) { - store.handleEvent({ - type: "local", - data: { - 'spinner': boolean - } - }); - } - setSelected(selected) { store.handleEvent({ type: "local", diff --git a/pkg/interface/publish/src/js/components/lib/comments.js b/pkg/interface/publish/src/js/components/lib/comments.js index 14583f6588..8bad4b6b60 100644 --- a/pkg/interface/publish/src/js/components/lib/comments.js +++ b/pkg/interface/publish/src/js/components/lib/comments.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import { CommentItem } from './comment-item'; import { dateToDa } from '/lib/util'; +import { Spinner } from './icons/icon-spinner'; export class Comments extends Component { constructor(props){ @@ -49,11 +50,9 @@ export class Comments extends Component { this.setState({pending: pendingState}); this.textArea.value = ''; - window.api.setSpinner(true); - this.setState({commentBody: ""}); + this.setState({commentBody: "", disabled: true}); let submit = window.api.action("publish", "publish-action", comment); submit.then(() => { - window.api.setSpinner(false); this.setState({ disabled: false }); }) } @@ -105,7 +104,7 @@ export class Comments extends Component { return (
{text}
+