diff options
| author | bob <bcz@cs.brown.edu> | 2019-03-14 10:33:45 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-03-14 10:33:45 -0400 |
| commit | c95e3f0c670c4f096a83af6dd48852a6c965842b (patch) | |
| tree | 87ec0ef6ff6ca583d77ee42a072359987ece2c48 /src/client/views/collections/PreviewCursor.tsx | |
| parent | db2486b7bf1fddf9d22e777d33b1f605854ccdd8 (diff) | |
| parent | f5ae101d3faa696379aae2b2573c1f073f11621d (diff) | |
Merge branch 'master' into ui_improvements
Diffstat (limited to 'src/client/views/collections/PreviewCursor.tsx')
| -rw-r--r-- | src/client/views/collections/PreviewCursor.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/PreviewCursor.tsx b/src/client/views/collections/PreviewCursor.tsx index 42b926374..a1411250a 100644 --- a/src/client/views/collections/PreviewCursor.tsx +++ b/src/client/views/collections/PreviewCursor.tsx @@ -16,7 +16,7 @@ import { CollectionFreeFormView } from "./CollectionFreeFormView"; export interface PreviewCursorProps { getTransform: () => Transform; container: CollectionFreeFormView; - addLiveTextDocuemnt: (doc: Document) => void; + addLiveTextDocument: (doc: Document) => void; } @observer @@ -61,7 +61,7 @@ export class PreviewCursor extends React.Component<PreviewCursorProps> { //make textbox and add it to this collection let [x, y] = this.props.getTransform().transformPoint(this._lastX, this._lastY); let newBox = Documents.TextDocument({ width: 200, height: 100, x: x, y: y, title: "new" }); - this.props.addLiveTextDocuemnt(newBox); + this.props.addLiveTextDocument(newBox); e.stopPropagation(); e.preventDefault(); } |
