mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-26 10:46:14 +00:00
fix: Remove wrapping li's
This commit is contained in:
parent
2547f68a6b
commit
ffb0ffb255
|
@ -1117,7 +1117,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
this.canAdmin_) &&
|
this.canAdmin_) &&
|
||||||
this.creatorIsMod_ &&
|
this.creatorIsMod_ &&
|
||||||
(!this.state.showConfirmTransferCommunity ? (
|
(!this.state.showConfirmTransferCommunity ? (
|
||||||
<li>
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
|
@ -1128,18 +1127,14 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
>
|
>
|
||||||
{I18NextService.i18n.t("transfer_community")}
|
{I18NextService.i18n.t("transfer_community")}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<li>
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||||
aria-label={I18NextService.i18n.t("are_you_sure")}
|
aria-label={I18NextService.i18n.t("are_you_sure")}
|
||||||
>
|
>
|
||||||
{I18NextService.i18n.t("are_you_sure")}
|
{I18NextService.i18n.t("are_you_sure")}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||||
aria-label={I18NextService.i18n.t("yes")}
|
aria-label={I18NextService.i18n.t("yes")}
|
||||||
|
@ -1151,8 +1146,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
I18NextService.i18n.t("yes")
|
I18NextService.i18n.t("yes")
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
|
@ -1163,7 +1156,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
>
|
>
|
||||||
{I18NextService.i18n.t("no")}
|
{I18NextService.i18n.t("no")}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
{/* Admins can ban from all, and appoint other admins */}
|
{/* Admins can ban from all, and appoint other admins */}
|
||||||
|
@ -1171,18 +1163,16 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<>
|
<>
|
||||||
{!this.creatorIsAdmin_ && (
|
{!this.creatorIsAdmin_ && (
|
||||||
<>
|
<>
|
||||||
{!isBanned(post_view.creator) ? (
|
{!isBanned(post_view.creator)
|
||||||
<li>{this.modBanButton}</li>
|
? this.modBanButton
|
||||||
) : (
|
: this.modUnbanButton}
|
||||||
<li>{this.modUnbanButton}</li>
|
{this.purgePersonButton}
|
||||||
)}
|
{this.purgePostButton}
|
||||||
<li>{this.purgePersonButton}</li>
|
|
||||||
<li>{this.purgePostButton}</li>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{!isBanned(post_view.creator) && post_view.creator.local && (
|
{!isBanned(post_view.creator) &&
|
||||||
<li>{this.toggleAdminButton}</li>
|
post_view.creator.local &&
|
||||||
)}
|
this.toggleAdminButton}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue