summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar arnaudvalle <arnaudvalle@users.noreply.github.com> 2020-01-05 08:30:46 +0100
committerGravatar Federico Brigante <github@bfred.it> 2020-01-05 14:30:46 +0700
commit2da1e9c8b381cb2c872c7cda3cabf086c9f50b22 (patch)
tree532dc46ca3cdf6c60807ff515d5f53b822c1d631
parent3a147d93426f4ed41183434e7eff4e90b2cee1c7 (diff)
downloadrefined-github-2da1e9c8b381cb2c872c7cda3cabf086c9f50b22.tar.gz
refined-github-2da1e9c8b381cb2c872c7cda3cabf086c9f50b22.tar.zst
refined-github-2da1e9c8b381cb2c872c7cda3cabf086c9f50b22.zip
Fix `filter-comments-by-you` link on PR list page (#2655)
-rw-r--r--source/features/filter-comments-by-you.tsx16
1 files changed, 7 insertions, 9 deletions
diff --git a/source/features/filter-comments-by-you.tsx b/source/features/filter-comments-by-you.tsx
index 51d7bb0c..31527203 100644
--- a/source/features/filter-comments-by-you.tsx
+++ b/source/features/filter-comments-by-you.tsx
@@ -6,16 +6,14 @@ import {getUsername, getRepoURL} from '../libs/utils';
const repoUrl = getRepoURL();
function init(): void {
- select('.subnav-search-context li:last-child')!
+ select('.subnav-search-context .SelectMenu-list a:last-child')!
.before(
- <li>
- <a
- href={`/${repoUrl}/issues?q=is%3Aopen+commenter:${getUsername()}`}
- className="select-menu-item"
- role="menuitem">
- Everything commented by you
- </a>
- </li>
+ <a
+ href={`/${repoUrl}/issues?q=is%3Aopen+commenter:${getUsername()}`}
+ className="SelectMenu-item"
+ role="menuitem">
+ Everything commented by you
+ </a>
);
}