From c6ce1662b2652f315c2e39f0879a5429d9bed733 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Thu, 8 Aug 2019 16:51:00 -0700 Subject: [PATCH] pos -> position --- components/Carbon.js | 2 +- components/SelectionEditor.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Carbon.js b/components/Carbon.js index 972836b..2c4acaf 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -291,7 +291,7 @@ class Carbon extends React.PureComponent { {this.state.modifierOpenAt && ( { if (this.currentSelection) { const css = [ diff --git a/components/SelectionEditor.js b/components/SelectionEditor.js index 31cf6fc..34ef896 100644 --- a/components/SelectionEditor.js +++ b/components/SelectionEditor.js @@ -19,7 +19,7 @@ function ModifierButton(props) { ) } -function SelectionEditor({ pos, onChange }) { +function SelectionEditor({ position, onChange }) { const [open, setOpen] = React.useState(false) const [bold, setBold] = React.useState(false) const [italics, setItalics] = React.useState(false) @@ -39,8 +39,8 @@ function SelectionEditor({ pos, onChange }) { pointerLeft="62px" style={{ zIndex: 100, - top: pos.top, - left: pos.left + top: position.top, + left: position.left }} >