diff options
author | 2020-04-29 01:24:40 +0200 | |
---|---|---|
committer | 2020-04-29 01:24:40 +0200 | |
commit | 5d5691729e9210a52c78e7fe96c780a7482b1ad2 (patch) | |
tree | 743126dd562ca753fcf99d5271ee85f955a5d679 /source/features/discussion-links-on-repo-lists.tsx | |
parent | 0ab7b3b392209cf543474102b563374e85ad4513 (diff) | |
download | refined-github-5d5691729e9210a52c78e7fe96c780a7482b1ad2.tar.gz refined-github-5d5691729e9210a52c78e7fe96c780a7482b1ad2.tar.zst refined-github-5d5691729e9210a52c78e7fe96c780a7482b1ad2.zip |
Meta: Use JSX when generating elements with functions (#3034)
Diffstat (limited to 'source/features/discussion-links-on-repo-lists.tsx')
-rw-r--r-- | source/features/discussion-links-on-repo-lists.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/features/discussion-links-on-repo-lists.tsx b/source/features/discussion-links-on-repo-lists.tsx index 283707e4..57c69659 100644 --- a/source/features/discussion-links-on-repo-lists.tsx +++ b/source/features/discussion-links-on-repo-lists.tsx @@ -1,7 +1,7 @@ import React from 'dom-chef'; import select from 'select-dom'; -import issueIcon from 'octicon/issue-opened.svg'; -import pullRequestIcon from 'octicon/git-pull-request.svg'; +import IssueIcon from 'octicon/issue-opened.svg'; +import PullRequestIcon from 'octicon/git-pull-request.svg'; import features from '../libs/features'; import * as pageDetect from '../libs/page-detect'; import observeElement from '../libs/simplified-element-observer'; @@ -26,13 +26,13 @@ function init(): void { className="muted-link mr-3" href={repositoryLink.href + '/issues?q=is%3Aissue+is%3Aopen'} > - {issueIcon()} + <IssueIcon/> </a>, <a className="muted-link mr-3" href={repositoryLink.href + '/pulls?q=is%3Apr+is%3Aopen'} > - {pullRequestIcon()} + <PullRequestIcon/> </a> ); } |