From f9e2635a6d198ad4c2afc0171d59ac3f83329371 Mon Sep 17 00:00:00 2001 From: c-cal Date: Thu, 8 Apr 2021 18:34:01 +0200 Subject: [PATCH] fix: hide permalink for unavailable room --- src/RoomPermalink.jsx | 9 +-------- src/css/RoomPermalink.scss | 4 ---- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/RoomPermalink.jsx b/src/RoomPermalink.jsx index fe74fa2..6d97075 100644 --- a/src/RoomPermalink.jsx +++ b/src/RoomPermalink.jsx @@ -19,14 +19,7 @@ const RoomPermalink = ({ roomId }) => { {t("permalink.alt")} - ) : ( - {t("permalink.alt")} - ); + ) : null; }; RoomPermalink.propTypes = { diff --git a/src/css/RoomPermalink.scss b/src/css/RoomPermalink.scss index dc822a0..a4f3534 100644 --- a/src/css/RoomPermalink.scss +++ b/src/css/RoomPermalink.scss @@ -2,7 +2,3 @@ margin-left: 1em; margin-right: 1em; } - -.RoomPermalink-disabled { - filter: opacity(40%); -}