pos -> position

main
Mike Fix 5 years ago
parent d42b0ec65b
commit c6ce1662b2

@ -291,7 +291,7 @@ class Carbon extends React.PureComponent {
</div>
{this.state.modifierOpenAt && (
<SelectionEditor
pos={this.state.modifierOpenAt}
position={this.state.modifierOpenAt}
onChange={changes => {
if (this.currentSelection) {
const css = [

@ -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
}}
>
<div className="colorizer">

Loading…
Cancel
Save