pos -> position

main
Mike Fix 5 years ago
parent d42b0ec65b
commit c6ce1662b2

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

@ -19,7 +19,7 @@ function ModifierButton(props) {
) )
} }
function SelectionEditor({ pos, onChange }) { function SelectionEditor({ position, onChange }) {
const [open, setOpen] = React.useState(false) const [open, setOpen] = React.useState(false)
const [bold, setBold] = React.useState(false) const [bold, setBold] = React.useState(false)
const [italics, setItalics] = React.useState(false) const [italics, setItalics] = React.useState(false)
@ -39,8 +39,8 @@ function SelectionEditor({ pos, onChange }) {
pointerLeft="62px" pointerLeft="62px"
style={{ style={{
zIndex: 100, zIndex: 100,
top: pos.top, top: position.top,
left: pos.left left: position.left
}} }}
> >
<div className="colorizer"> <div className="colorizer">

Loading…
Cancel
Save