mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-29 20:11:55 +03:00
here we go
This commit is contained in:
parent
d30d1be565
commit
15c72de1ef
@ -9,14 +9,14 @@ import { css } from "@emotion/react";
|
||||
import { dispatchCustomEvent } from "~/common/custom-events";
|
||||
|
||||
export default class SidebarFilecoinArchive extends React.Component {
|
||||
state = { response: "" };
|
||||
state = { response: null };
|
||||
|
||||
async componentDidMount() {}
|
||||
|
||||
_handleMakeDeal = async () => {
|
||||
const response = await Actions.archive();
|
||||
|
||||
this.setState({ response });
|
||||
alert("A new Filecoin deal is being processed.");
|
||||
};
|
||||
|
||||
_handleSubmit = async (e) => {
|
||||
@ -63,9 +63,11 @@ export default class SidebarFilecoinArchive extends React.Component {
|
||||
Make storage deal
|
||||
</System.ButtonPrimary>
|
||||
|
||||
{this.state.response ? (
|
||||
<div style={{ whiteSpace: "pre-wrap", marginTop: 48 }}>
|
||||
{JSON.stringify(this.state.response, null, 2)}
|
||||
</div>
|
||||
) : null}
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
@ -152,8 +152,6 @@ export const getTextileById = async ({ id }) => {
|
||||
errors.push({ decorator: "STATUS", message: e.message, code: e.code });
|
||||
}
|
||||
|
||||
console.log(jobs);
|
||||
|
||||
return {
|
||||
type: "VIEWER_FILECOIN",
|
||||
settings: {
|
||||
|
Loading…
Reference in New Issue
Block a user