FarmBot/Farmbot-Web-App

View on GitHub
frontend/try_farmbot/try_farmbot.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import { DemoIframe } from "../demo/demo_iframe";

export const DEMO_LOADING = <h1 className="initial-loading-text">Loading...</h1>;

export class TryFarmbot extends DemoIframe {
  componentDidMount = () => {
    this.requestAccount();
  };

  render = () => {
    if (this.state.error) {
      return this.no();
    }
    return DEMO_LOADING;
  };
}