fix: hide permalink for unavailable room

develop
c-cal 4 years ago
parent 3827a1b8f8
commit f9e2635a6d
  1. 9
      src/RoomPermalink.jsx
  2. 4
      src/css/RoomPermalink.scss

@ -19,14 +19,7 @@ const RoomPermalink = ({ roomId }) => {
<a href={`/app/#/room/${roomId}`} target="room"> <a href={`/app/#/room/${roomId}`} target="room">
<img className="RoomPermalink" src={icon} alt={t("permalink.alt")} title={t("permalink.enabled")} /> <img className="RoomPermalink" src={icon} alt={t("permalink.alt")} title={t("permalink.enabled")} />
</a> </a>
) : ( ) : null;
<img
className="RoomPermalink RoomPermalink-disabled"
src={icon}
alt={t("permalink.alt")}
title={t("permalink.disabled")}
/>
);
}; };
RoomPermalink.propTypes = { RoomPermalink.propTypes = {

@ -2,7 +2,3 @@
margin-left: 1em; margin-left: 1em;
margin-right: 1em; margin-right: 1em;
} }
.RoomPermalink-disabled {
filter: opacity(40%);
}

Loading…
Cancel
Save