possibly dealed with setting addresses

This commit is contained in:
muerwre 2018-09-03 16:33:15 +07:00
parent 13c5ae08d9
commit ad04704c3e
7 changed files with 65 additions and 17 deletions

View file

@ -8,14 +8,18 @@ import { postMap } from '$utils/api';
import classnames from 'classnames';
export class SaveDialog extends React.Component {
state = {
address: '',
title: '',
error: '',
sending: false,
finished: false,
overwriting: false,
};
constructor(props) {
super(props);
this.state = {
address: props.address || '',
title: props.title || '',
error: '',
sending: false,
finished: false,
overwriting: false,
};
}
getAddress = () => {
const { path } = getUrlData();