mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
passing editing status to map
This commit is contained in:
parent
58eefd5670
commit
9c3c8cf46d
10 changed files with 213 additions and 65 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue