diff options
| author | andrewdkim <adkim414@gmail.com> | 2019-08-08 17:01:05 -0400 | 
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2019-08-08 17:01:05 -0400 | 
| commit | 2ec9f8160204aaaa94239910731facce260c34a5 (patch) | |
| tree | d1eb2b06526b5d6e3cf2deb7e84c8eddf0e67e1a /src/client/views/graph/Graph.tsx | |
| parent | 300aff743835dfd1c021609fd005819c8f2fd584 (diff) | |
added functionalities
Diffstat (limited to 'src/client/views/graph/Graph.tsx')
| -rw-r--r-- | src/client/views/graph/Graph.tsx | 20 | 
1 files changed, 16 insertions, 4 deletions
| diff --git a/src/client/views/graph/Graph.tsx b/src/client/views/graph/Graph.tsx index 864bb8f46..326f33358 100644 --- a/src/client/views/graph/Graph.tsx +++ b/src/client/views/graph/Graph.tsx @@ -1,17 +1,29 @@  import * as React from "react"; +import {observable} from "mobx";  +import { observer } from "mobx-react"; +import { Document, listSpec } from "../../../new_fields/Schema";  import { CollectionFreeFormView } from "../collections/collectionFreeForm/CollectionFreeFormView"; +import { CollectionSubView, CollectionViewProps, SubCollectionViewProps } from "../collections/CollectionSubView"; -export class Graph extends React.Component { -     -     +export class Graph extends CollectionSubView(Document) { +    static Instance:Graph;  + +    private constructor(props:SubCollectionViewProps) { +        super(props);  +        Graph.Instance = this;  +    } + +      render() {          return ( -        ) +            <CollectionFreeFormView {...this.props}/> +             +        );       }  }
\ No newline at end of file | 
