From 9316d7691c5466d69ab0139bc1069a5ae1fce075 Mon Sep 17 00:00:00 2001 From: Igor Kamyshev Date: Wed, 17 Apr 2019 20:25:21 +0300 Subject: [PATCH] fix(tip): hide dismiss button from important tip --- front/src/features/app/features/now/tips/custom/Custom.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/features/app/features/now/tips/custom/Custom.tsx b/front/src/features/app/features/now/tips/custom/Custom.tsx index dd03975c..c997796e 100644 --- a/front/src/features/app/features/now/tips/custom/Custom.tsx +++ b/front/src/features/app/features/now/tips/custom/Custom.tsx @@ -13,11 +13,11 @@ export const Custom = ({ tip: { meta, token } }: Props) => { const { title, text, link, important } = meta const actions = !!link && Open - const dismiss = important && + const dismiss = !important && return ( -

{text}

+ {text}
) }