fix: Fix some button labels and tippy text

This commit is contained in:
Jay Sitter 2023-06-17 18:28:35 -04:00
parent 7db7f6c55f
commit fc1c4f3279
1 changed files with 2 additions and 5 deletions

View File

@ -902,7 +902,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<button <button
className="btn btn-link text-muted dropdown-item" className="btn btn-link text-muted dropdown-item"
onClick={linkEvent(this, this.handleEditClick)} onClick={linkEvent(this, this.handleEditClick)}
data-tippy-content={i18n.t("edit")}
aria-label={i18n.t("edit")} aria-label={i18n.t("edit")}
> >
<Icon classes="mr-1" icon="edit" inline /> <Icon classes="mr-1" icon="edit" inline />
@ -918,7 +917,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<button <button
className="btn btn-link text-muted dropdown-item" className="btn btn-link text-muted dropdown-item"
onClick={linkEvent(this, this.handleDeleteClick)} onClick={linkEvent(this, this.handleDeleteClick)}
data-tippy-content={label}
aria-label={label} aria-label={label}
> >
{this.state.deleteLoading ? ( {this.state.deleteLoading ? (
@ -930,7 +928,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
classes={classNames("mr-1", { "text-danger": deleted })} classes={classNames("mr-1", { "text-danger": deleted })}
inline inline
/> />
{i18n.t("delete")} {label}
</> </>
)} )}
</button> </button>
@ -961,7 +959,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<button <button
className="btn btn-link text-muted dropdown-item" className="btn btn-link text-muted dropdown-item"
onClick={linkEvent(this, this.handleModLock)} onClick={linkEvent(this, this.handleModLock)}
data-tippy-content={label}
aria-label={label} aria-label={label}
> >
{this.state.lockLoading ? ( {this.state.lockLoading ? (
@ -973,7 +970,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
classes={classNames("mr-1", { "text-danger": locked })} classes={classNames("mr-1", { "text-danger": locked })}
inline inline
/> />
{i18n.t("lock")} {label}
</> </>
)} )}
</button> </button>