blob: 0e0619241a02010fc1811800b316d5d4d9c2dd34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { observer } from 'mobx-react';
import { ViewBoxAnnotatableComponent } from '../DocComponent';
import { FieldView, FieldViewProps } from './FieldView';
import * as React from 'react';
import './LoadingBox.scss';
import ReactLoading from 'react-loading';
export interface LoadingBoxProps {
title: string;
text: string;
}
@observer
export class LoadingBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
public static LayoutString(fieldKey: string) {
return FieldView.LayoutString(LoadingBox, fieldKey);
}
constructor(props: any) {
super(props);
}
render() {
return (
<div className="loadingBoxContainer">
<span>Loading: {this.dataDoc.text}</span>
<ReactLoading type={'spinningBubbles'} color={'blue'} height={100} width={100} />
</div>
);
}
}
|