diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-30 23:12:53 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-30 23:12:53 -0400 |
| commit | 1bddc876f4c998e070ce37fa368dc650a7695120 (patch) | |
| tree | 11f45ac1b72e69f6f89ea449db6d939bb33cd2cd /src/client/views/OverlayView.tsx | |
| parent | 754ef899758226dc0dbdec0c63d00db7ea9eca47 (diff) | |
cleaned up MainView a bit.
Diffstat (limited to 'src/client/views/OverlayView.tsx')
| -rw-r--r-- | src/client/views/OverlayView.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/OverlayView.tsx b/src/client/views/OverlayView.tsx index 5188ab9a8..cc0dd0443 100644 --- a/src/client/views/OverlayView.tsx +++ b/src/client/views/OverlayView.tsx @@ -1,6 +1,7 @@ import { action, computed, observable } from "mobx"; import { observer } from "mobx-react"; import * as React from "react"; +import ReactLoading from 'react-loading'; import { Doc, DocListCast, Opt } from "../../fields/Doc"; import { Id } from "../../fields/FieldSymbols"; import { NumCast, Cast } from "../../fields/Types"; @@ -212,6 +213,11 @@ export class OverlayView extends React.Component { }); } + public static ShowSpinner() { + return OverlayView.Instance.addElement(<ReactLoading type="spinningBubbles" color="green" height={250} width={250} />, { x: 300, y: 200 }); + } + + render() { return ( <div className="overlayView" id="overlayView"> |
