diff options
author | bobzel <zzzman@gmail.com> | 2020-04-03 22:05:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 22:05:11 -0400 |
commit | 5a49ff42f845239de72c4c31c4df0688313b30e7 (patch) | |
tree | 082ea03501aecc4f9ea3f68d3954ef9b2c6195a8 /src/client/views/nodes/DocumentContentsView.tsx | |
parent | a0e4ae65f81c62ac08761359e60b996f0e839559 (diff) | |
parent | fac740378a9eeaeb0af4567f6402120aba8bd62e (diff) |
Merge pull request #350 from browngraphicslab/search_doc
Search doc
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentContentsView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index 68501fca2..dc71ba280 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -1,6 +1,6 @@ import { computed } from "mobx"; import { observer } from "mobx-react"; -import { Doc } from "../../../new_fields/Doc"; +import { Doc, Opt } from "../../../new_fields/Doc"; import { Cast, StrCast } from "../../../new_fields/Types"; import { OmitKeys, Without } from "../../../Utils"; import { HistogramBox } from "../../northstar/dash-nodes/HistogramBox"; @@ -35,6 +35,7 @@ import { WebBox } from "./WebBox"; import { InkingStroke } from "../InkingStroke"; import React = require("react"); import { RecommendationsBox } from "../RecommendationsBox"; + import { TraceMobx } from "../../../new_fields/util"; const JsxParser = require('react-jsx-parser').default; //TODO Why does this need to be imported like this? @@ -60,7 +61,7 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & { forceLayout?: string, forceFieldKey?: string, hideOnLeave?: boolean, - makeLink?: () => Opt<Doc>; + makeLink?: () => Opt<Doc>, // function to call when a link is made }> { @computed get layout(): string { TraceMobx(); |