mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
Make community IDs more easily selectable (#1306)
* Make community IDs more easily selectable * Use T component for alert * Use T component for alert --------- Co-authored-by: SleeplessOne1917 <abias1122@gmail.com> Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
b228214cd0
commit
1c26a85fff
1 changed files with 10 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { Component, InfernoNode, linkEvent } from "inferno";
|
import { Component, InfernoNode, linkEvent } from "inferno";
|
||||||
|
import { T } from "inferno-i18next-dess";
|
||||||
import { Link } from "inferno-router";
|
import { Link } from "inferno-router";
|
||||||
import {
|
import {
|
||||||
AddModToCommunity,
|
AddModToCommunity,
|
||||||
|
@ -144,10 +145,15 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
{myUSerInfo && this.blockCommunity()}
|
{myUSerInfo && this.blockCommunity()}
|
||||||
{!myUSerInfo && (
|
{!myUSerInfo && (
|
||||||
<div className="alert alert-info" role="alert">
|
<div className="alert alert-info" role="alert">
|
||||||
{i18n.t("community_not_logged_in_alert", {
|
<T
|
||||||
|
i18nKey="community_not_logged_in_alert"
|
||||||
|
interpolation={{
|
||||||
community: name,
|
community: name,
|
||||||
instance: hostname(actor_id),
|
instance: hostname(actor_id),
|
||||||
})}
|
}}
|
||||||
|
>
|
||||||
|
#<code className="user-select-all">#</code>#
|
||||||
|
</T>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue