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">
<img className="RoomPermalink" src={icon} alt={t("permalink.alt")} title={t("permalink.enabled")} />
</a>
) : (
<img
className="RoomPermalink RoomPermalink-disabled"
src={icon}
alt={t("permalink.alt")}
title={t("permalink.disabled")}
/>
);
) : null;
};
RoomPermalink.propTypes = {

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

Loading…
Cancel
Save