Fixing PR comments.

This commit is contained in:
Dessalines 2023-08-04 16:48:35 -04:00
parent 655310d6e6
commit b5ef4db621

View file

@ -428,7 +428,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<span className="mx-1 badge text-bg-light">
{
this.props.allLanguages.find(
lang => lang.id === post_view.post.language_id
lang => lang.id === post_view.post.language_id,
)?.name
}
</span>
@ -524,7 +524,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<small
className="unselectable pointer ms-2 text-muted fst-italic"
data-tippy-content={I18NextService.i18n.t(
"featured_in_community"
"featured_in_community",
)}
aria-label={I18NextService.i18n.t("featured_in_community")}
>
@ -745,14 +745,11 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
}
public get linkTarget(): string {
if (
UserService.Instance.myUserInfo?.local_user_view.local_user
return UserService.Instance.myUserInfo?.local_user_view.local_user
.open_links_in_new_tab
) {
return "_blank";
}
// _self is the default target on links when the field is not specified
return "_self";
? "_blank"
: // _self is the default target on links when the field is not specified
"_self";
}
get commentsButton() {
@ -1136,7 +1133,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
className="btn btn-link btn-sm d-flex align-items-center rounded-0 dropdown-item"
onClick={linkEvent(
this,
!removed ? this.handleModRemoveShow : this.handleModRemoveSubmit
!removed ? this.handleModRemoveShow : this.handleModRemoveSubmit,
)}
>
{/* TODO: Find an icon for this. */}
@ -1209,7 +1206,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
className="btn btn-link btn-animate text-muted py-0 d-inline-block"
onClick={linkEvent(
this,
this.handleCancelShowConfirmTransferCommunity
this.handleCancelShowConfirmTransferCommunity,
)}
aria-label={I18NextService.i18n.t("no")}
>
@ -1793,7 +1790,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
this.props.moderators,
this.props.admins,
undefined,
true
true,
);
}
@ -1801,7 +1798,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
return canMod(
this.postView.creator.id,
this.props.moderators,
this.props.admins
this.props.admins,
);
}