2020-04-09 00:29:13 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
import * as System from "~/components/system";
|
|
|
|
|
2020-09-12 01:25:33 +03:00
|
|
|
import { dispatchCustomEvent } from "~/common/custom-events";
|
2020-04-09 00:29:13 +03:00
|
|
|
|
|
|
|
export default class SidebarDeleteWalletAddress extends React.Component {
|
|
|
|
_handleSubmit = () => {
|
2020-09-12 01:25:33 +03:00
|
|
|
dispatchCustomEvent({
|
|
|
|
name: "create-alert",
|
|
|
|
detail: {
|
|
|
|
alert: { message: "Deleting wallet address...", status: "INFO" },
|
|
|
|
},
|
|
|
|
});
|
2020-04-09 00:29:13 +03:00
|
|
|
this.props.onSubmit({});
|
|
|
|
};
|
|
|
|
|
|
|
|
_handleCancel = () => {
|
|
|
|
this.props.onCancel();
|
|
|
|
};
|
|
|
|
|
|
|
|
_handleChange = (e) => {
|
|
|
|
this.setState({ [e.target.name]: e.target.value });
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
2020-09-08 02:28:50 +03:00
|
|
|
<System.P
|
|
|
|
style={{
|
|
|
|
fontFamily: Constants.font.semiBold,
|
|
|
|
fontSize: Constants.typescale.lvl3,
|
|
|
|
}}
|
|
|
|
>
|
2020-04-09 00:29:13 +03:00
|
|
|
Are you sure you want to delete the selected wallet?
|
|
|
|
</System.P>
|
|
|
|
|
2020-11-04 20:55:48 +03:00
|
|
|
<System.ButtonPrimary full style={{ marginTop: 48 }} onClick={this._handleSubmit}>
|
2020-04-09 00:29:13 +03:00
|
|
|
Delete
|
2020-08-02 22:17:13 +03:00
|
|
|
</System.ButtonPrimary>
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-11-04 20:55:48 +03:00
|
|
|
<System.ButtonSecondary full style={{ marginTop: 16 }} onClick={this._handleCancel}>
|
2020-04-09 00:29:13 +03:00
|
|
|
Cancel
|
2020-08-02 22:17:13 +03:00
|
|
|
</System.ButtonSecondary>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|