Improve design of ResourceDeletionView
authorFrank Bessou <frank.bessou@logilab.fr>
Mon, 15 May 2017 16:56:06 +0200
changeset 207 f2b81d05b3cb
parent 206 2cf5245ab86d
child 208 310659809732
Improve design of ResourceDeletionView
src/components/Resource.js
--- a/src/components/Resource.js	Mon May 15 15:36:06 2017 +0200
+++ b/src/components/Resource.js	Mon May 15 16:56:06 2017 +0200
@@ -222,11 +222,13 @@
         hypermediaClient.deleteResource(resource.url).then(navigateToParent);
     }
     return (
-        <div>
+        <div className="text-center jumbotron">
             Do you really want to permanently remove this resource?
-            <br/>
-            <button onClick={deleteEntity}>Confirm</button>
-            <button onClick={navigateToSelf}>Cancel</button>
+            <div className="container" >
+                <button className="btn btn-danger btn-lg" onClick={deleteEntity}>Confirm</button>
+                &nbsp;
+                <button className="btn btn-default btn-lg" onClick={navigateToSelf}>Cancel</button>
+            </div>
         </div>
     );