mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +00:00
fix: Remove wrapping li's
This commit is contained in:
parent
69966369d3
commit
6c2ee399b9
1 changed files with 40 additions and 50 deletions
|
@ -1147,7 +1147,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
this.canAdmin_) &&
|
||||
this.creatorIsMod_ &&
|
||||
(!this.state.showConfirmTransferCommunity ? (
|
||||
<li>
|
||||
<button
|
||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||
onClick={linkEvent(
|
||||
|
@ -1158,18 +1157,14 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
>
|
||||
{I18NextService.i18n.t("transfer_community")}
|
||||
</button>
|
||||
</li>
|
||||
) : (
|
||||
<>
|
||||
<li>
|
||||
<button
|
||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||
aria-label={I18NextService.i18n.t("are_you_sure")}
|
||||
>
|
||||
{I18NextService.i18n.t("are_you_sure")}
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||
aria-label={I18NextService.i18n.t("yes")}
|
||||
|
@ -1181,8 +1176,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
I18NextService.i18n.t("yes")
|
||||
)}
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
className="btn btn-link btn-animate text-muted py-0 dropdown-item"
|
||||
onClick={linkEvent(
|
||||
|
@ -1193,7 +1186,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
>
|
||||
{I18NextService.i18n.t("no")}
|
||||
</button>
|
||||
</li>
|
||||
</>
|
||||
))}
|
||||
{/* Admins can ban from all, and appoint other admins */}
|
||||
|
@ -1201,18 +1193,16 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
<>
|
||||
{!this.creatorIsAdmin_ && (
|
||||
<>
|
||||
{!isBanned(post_view.creator) ? (
|
||||
<li>{this.modBanButton}</li>
|
||||
) : (
|
||||
<li>{this.modUnbanButton}</li>
|
||||
)}
|
||||
<li>{this.purgePersonButton}</li>
|
||||
<li>{this.purgePostButton}</li>
|
||||
{!isBanned(post_view.creator)
|
||||
? this.modBanButton
|
||||
: this.modUnbanButton}
|
||||
{this.purgePersonButton}
|
||||
{this.purgePostButton}
|
||||
</>
|
||||
)}
|
||||
{!isBanned(post_view.creator) && post_view.creator.local && (
|
||||
<li>{this.toggleAdminButton}</li>
|
||||
)}
|
||||
{!isBanned(post_view.creator) &&
|
||||
post_view.creator.local &&
|
||||
this.toggleAdminButton}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue