2020-04-09 00:29:13 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Strings from "~/common/strings";
|
|
|
|
import * as Constants from "~/common/constants";
|
2020-09-05 02:15:29 +03:00
|
|
|
import * as SVG from "~/common/svg";
|
2020-04-09 00:29:13 +03:00
|
|
|
import * as System from "~/components/system";
|
|
|
|
|
|
|
|
import { css } from "@emotion/react";
|
|
|
|
|
|
|
|
export default class SidebarDeleteWalletAddress extends React.Component {
|
|
|
|
_handleSubmit = () => {
|
|
|
|
alert("TODO: Delete wallet address");
|
|
|
|
this.props.onSubmit({});
|
|
|
|
};
|
|
|
|
|
|
|
|
_handleCancel = () => {
|
|
|
|
this.props.onCancel();
|
|
|
|
};
|
|
|
|
|
|
|
|
_handleChange = (e) => {
|
|
|
|
this.setState({ [e.target.name]: e.target.value });
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
2020-07-02 11:24:14 +03:00
|
|
|
<System.P style={{ fontFamily: Constants.font.semiBold }}>
|
2020-04-09 00:29:13 +03:00
|
|
|
Are you sure you want to delete the selected wallet?
|
|
|
|
</System.P>
|
|
|
|
|
2020-08-02 22:17:13 +03:00
|
|
|
<System.ButtonPrimary
|
|
|
|
full
|
2020-04-09 00:29:13 +03:00
|
|
|
style={{ marginTop: 48 }}
|
|
|
|
onClick={this._handleSubmit}
|
|
|
|
>
|
|
|
|
Delete
|
2020-08-02 22:17:13 +03:00
|
|
|
</System.ButtonPrimary>
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-08-02 22:17:13 +03:00
|
|
|
<System.ButtonSecondary
|
|
|
|
full
|
2020-04-09 00:29:13 +03:00
|
|
|
style={{ marginTop: 16 }}
|
|
|
|
onClick={this._handleCancel}
|
|
|
|
>
|
|
|
|
Cancel
|
2020-08-02 22:17:13 +03:00
|
|
|
</System.ButtonSecondary>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|