From 4ca753f38fd58e4545e203aa9a6c4155e03de9be Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 19 Oct 2018 12:50:44 +0100 Subject: [PATCH] Trim text on widget --- embark-ui/src/components/Processes.js | 2 +- embark-ui/src/components/Widget02.js | 18 ++---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/embark-ui/src/components/Processes.js b/embark-ui/src/components/Processes.js index 59bed6af..9379cf01 100644 --- a/embark-ui/src/components/Processes.js +++ b/embark-ui/src/components/Processes.js @@ -19,7 +19,7 @@ function iconClasses(state){ } const Process = ({process}) => ( - + ); diff --git a/embark-ui/src/components/Widget02.js b/embark-ui/src/components/Widget02.js index 2f42e24b..c5110d8c 100644 --- a/embark-ui/src/components/Widget02.js +++ b/embark-ui/src/components/Widget02.js @@ -10,8 +10,6 @@ const propTypes = { icon: PropTypes.string, color: PropTypes.string, variant: PropTypes.string, - footer: PropTypes.bool, - link: PropTypes.string, children: PropTypes.node, className: PropTypes.string, cssModule: PropTypes.object, @@ -46,25 +44,13 @@ class Widget02 extends Component { return (); }; - const cardFooter = function () { - if (footer) { - return ( - - View More - - - ); - } - }; - return ( {blockIcon(card.icon)} -
{header}
-
{mainText}
+

{header}

+

{mainText}

- {cardFooter()}
); }