slate/components/sidebars/SidebarDeleteWalletAddress.js

43 lines
1.1 KiB
JavaScript
Raw Normal View History

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