chore(react): fix editorconfig

This commit is contained in:
Elian Doran 2025-08-30 17:06:21 +03:00
parent 49b189e7a9
commit 4891721cc0
No known key found for this signature in database
3 changed files with 7 additions and 16 deletions

View File

@ -1,6 +1,6 @@
root = true
[*.{js,ts,.tsx}]
[*.{js,ts,tsx}]
charset = utf-8
end_of_line = lf
indent_size = 4

View File

@ -52,6 +52,7 @@ export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit<P
<div class="note-list-pager">
{children}
// no need to distinguish "note" vs "notes" since in case of one result, there's no paging at all
<span className="note-list-pager-total-count">({t("pagination.total_notes", { count: totalNotes })})</span>
</div>
)

View File

@ -39,19 +39,9 @@ class ListOrGridView extends ViewMode<{}> {
this.$noteList.show();
this.renderPager();
return this.$noteList;
}
renderPager() {
// no need to distinguish "note" vs "notes" since in case of one result, there's no paging at all
$pager.append(`<span class=""></span>`);
}
async renderNote(note: FNote, expand: boolean = false) {
const { $renderedAttributes } = await attributeRenderer.renderNormalAttributes(note);