mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 22:49:33 +00:00
Use match
This commit is contained in:
parent
a8ab4e0558
commit
dbb5c10da9
|
@ -581,14 +581,19 @@ export class Modlog extends Component<any, ModlogState> {
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
<h5>
|
<h5>
|
||||||
{this.state.communityName.isSome() && (
|
{
|
||||||
<Link
|
this.state.communityName.match({
|
||||||
className="text-body"
|
some: name => (
|
||||||
to={`/c/${this.state.communityName}`}
|
<Link
|
||||||
>
|
className="text-body"
|
||||||
/c/{this.state.communityName}{" "}
|
to={`/c/${name}`}
|
||||||
</Link>
|
>
|
||||||
)}
|
/c/{name}{" "}
|
||||||
|
</Link>
|
||||||
|
),
|
||||||
|
none: <></>,
|
||||||
|
})
|
||||||
|
}
|
||||||
<span>{i18n.t("modlog")}</span>
|
<span>{i18n.t("modlog")}</span>
|
||||||
</h5>
|
</h5>
|
||||||
<form className="form-inline mr-2">
|
<form className="form-inline mr-2">
|
||||||
|
|
Loading…
Reference in a new issue