fix: Fix some button labels and tippy text
authorJay Sitter <jay@jaysitter.com>
Sat, 17 Jun 2023 22:28:35 +0000 (18:28 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 14:18:17 +0000 (10:18 -0400)
src/shared/components/post/post-listing.tsx

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