diff options
author | 2022-07-20 00:25:37 +0700 | |
---|---|---|
committer | 2022-07-20 00:25:37 +0700 | |
commit | f2c07257766df27d3b3787ff17b3e5e4f9ed5aaf (patch) | |
tree | 6ddeb95ad4f3a6ac0183e93ad4dd4630cf04d86f /source/features/toggle-files-button.tsx | |
parent | 6223de2cc8140a69ddefa82fe2708a7c1611ede1 (diff) | |
download | refined-github-f2c07257766df27d3b3787ff17b3e5e4f9ed5aaf.tar.gz refined-github-f2c07257766df27d3b3787ff17b3e5e4f9ed5aaf.tar.zst refined-github-f2c07257766df27d3b3787ff17b3e5e4f9ed5aaf.zip |
Lint (#5830)
Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>
Co-authored-by: yakov116 <16872793+yakov116@users.noreply.github.com>
Diffstat (limited to 'source/features/toggle-files-button.tsx')
-rw-r--r-- | source/features/toggle-files-button.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/features/toggle-files-button.tsx b/source/features/toggle-files-button.tsx index 5be12df0..2fe0bbf2 100644 --- a/source/features/toggle-files-button.tsx +++ b/source/features/toggle-files-button.tsx @@ -25,8 +25,7 @@ function addButton(): void { anchor: selectHas('.repository-content ul:has(.octicon-history)')!, allowMissingAnchor: true, className: toggleButtonClass, - position: 'append', - getNewElement: () => ( + append: () => ( <button type="button" className="btn-octicon" @@ -43,9 +42,8 @@ function addFilesHiddenNotice(repoContent: Element): void { // Add notice so the user knows that the list was collapsed #5524 attachElement({ anchor: select('.Box', repoContent), - position: 'after', className: noticeClass, - getNewElement: () => ( + after: () => ( <div className="mb-3 mt-n3 py-1 text-right text-small color-fg-subtle" style={noticeStyle} |