From 395612dffea06b52153b7a6acf22ab33207c9346 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 8 Nov 2016 11:04:15 -0800 Subject: ui: allow removing accounts --- ui/app/components/confirmation.js | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ui/app/components/confirmation.js (limited to 'ui/app/components/confirmation.js') diff --git a/ui/app/components/confirmation.js b/ui/app/components/confirmation.js new file mode 100644 index 00000000..69186162 --- /dev/null +++ b/ui/app/components/confirmation.js @@ -0,0 +1,43 @@ +// +// A simple diagon that asks if you are sure. +// + +import React from 'react' +import {Button, ButtonGroup, ButtonToolbar, Glyphicon, Modal} + from 'react-bootstrap' + +export default class Confirmation extends React.Component { + + static get defaultProps() {return{ + title: "Are you sure?", + onCancel: null, + onAccept: null, + acceptStr: 'Accept', + cancelStr: 'Cancel' + }} + + constructor(props) { + super(props) + } + + render() { + return ( + + + {this.props.title} + + + + + + + + + ) + } +} + -- cgit v1.2.3