aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LoadingBox.tsx
diff options
context:
space:
mode:
authorNaafiyan Ahmed <naafiyan@gmail.com>2022-08-16 21:16:03 -0400
committerNaafiyan Ahmed <naafiyan@gmail.com>2022-08-16 21:16:03 -0400
commit27945b9a931fa9504404174dd08964556dc3aea2 (patch)
tree44f63d7d72767eb9ff0ddb6092ac249bdbcdf97f /src/client/views/nodes/LoadingBox.tsx
parentbb2b38b0e47eaf8e64554d101b605bf35a178239 (diff)
added loading for diff doc types
Diffstat (limited to 'src/client/views/nodes/LoadingBox.tsx')
-rw-r--r--src/client/views/nodes/LoadingBox.tsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/client/views/nodes/LoadingBox.tsx b/src/client/views/nodes/LoadingBox.tsx
index 9d4668dde..96620aff9 100644
--- a/src/client/views/nodes/LoadingBox.tsx
+++ b/src/client/views/nodes/LoadingBox.tsx
@@ -4,12 +4,7 @@ import { FieldView, FieldViewProps } from './FieldView';
import * as React from 'react';
import './LoadingBox.scss';
import ReactLoading from 'react-loading';
-import { Docs, DocUtils } from '../../documents/Documents';
-
-export interface LoadingBoxProps {
- title: string;
- text: string;
-}
+import { StrCast } from '../../../fields/Types';
@observer
export class LoadingBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
@@ -18,6 +13,7 @@ export class LoadingBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
}
componentDidMount() {
+ console.log(this.rootDoc);
// const file = Docs.Create.filesToDocs.get(this.rootDoc);
// if (file) {
// console.log('Got to file');
@@ -48,7 +44,9 @@ export class LoadingBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
render() {
return (
<div className="loadingBoxContainer">
- <span>Loading: {this.dataDoc.text}</span>
+ <p className="text">Loading:</p>
+ <br></br>
+ <p className="text">{StrCast(this.rootDoc.title)}</p>
<ReactLoading type={'spinningBubbles'} color={'blue'} height={100} width={100} />
</div>
);