From ef8beab140dbb2df78b7dae3d51037876aae6120 Mon Sep 17 00:00:00 2001
From: Alexandru Munteanu <alexandru.munteanu@thinslices.com>
Date: Fri, 16 Feb 2018 13:37:12 +0200
Subject: [PATCH] view abstract only from details view

---
 .../src/components/Dashboard/DashboardCard.js   | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/packages/components-faraday/src/components/Dashboard/DashboardCard.js b/packages/components-faraday/src/components/Dashboard/DashboardCard.js
index 75868581a..1ea3969bc 100644
--- a/packages/components-faraday/src/components/Dashboard/DashboardCard.js
+++ b/packages/components-faraday/src/components/Dashboard/DashboardCard.js
@@ -75,9 +75,12 @@ const DashboardCard = ({
             <div className={classes.column2}>
               <div>{author}</div>
               {abstract && (
-                <a href="#" onClick={setModal(abstract)}>
-                  view
-                </a>
+                <ViewAbstractContainer onClick={setModal(metadata)}>
+                  <Icon color="#667080" size={18}>
+                    eye
+                  </Icon>
+                  <span>View</span>
+                </ViewAbstractContainer>
               )}
             </div>
           </div>
@@ -109,14 +112,6 @@ const DashboardCard = ({
           </div>
         </div>
       )}
-      {abstract && (
-        <ViewAbstractContainer onClick={setModal(metadata)}>
-          <Icon color="#667080" size={18}>
-            eye
-          </Icon>
-          <span>View Abstract</span>
-        </ViewAbstractContainer>
-      )}
     </div>
   )
 }
-- 
GitLab