passing editing status to map

This commit is contained in:
Fedor Katurov 2019-12-30 16:41:37 +07:00
parent 58eefd5670
commit 9c3c8cf46d
10 changed files with 213 additions and 65 deletions

View file

@ -16,12 +16,10 @@ export class StickerDesc extends React.PureComponent<Props, State> {
};
setText = e => {
this.setState({ text: e.target.value });
this.props.onChange(e.target.value);
};
blockMouse = e => {
console.log('BM');
e.stopPropagation();
this.input.focus();
};
@ -30,7 +28,7 @@ export class StickerDesc extends React.PureComponent<Props, State> {
// todo: pass here locker for moving markers from Sticker.js
render() {
const { text } = this.state;
const { value: text } = this.props;
return (
<div

View file

@ -20,7 +20,8 @@ export const AppInfoDialog = () => (
<div>
<div>Исходный код:</div>
<a href="//github.com/muerwre/orchid-front" target="_blank">github.com/muerwre/orchid-front</a>
<a href="//github.com/muerwre/orchid-backend" target="_blank">github.com/muerwre/orchid-backed</a>
<br />
<a href="//github.com/muerwre/orchid-backend" target="_blank">github.com/muerwre/orchid-backend</a>
</div>
<div>
<div>Frontend:</div>