chore(react/type_widget): port none type widget

This commit is contained in:
Elian Doran 2025-09-19 18:35:49 +03:00
parent bbb927c83f
commit c9fe358811
No known key found for this signature in database
2 changed files with 2 additions and 15 deletions

View File

@ -59,6 +59,8 @@ function getCorrespondingWidget(noteType: ExtendedNoteType | undefined, props: T
return <Empty />
case "doc":
return <Doc {...props} />
case "search":
return <div className="note-detail-none note-detail-printable" />
default:
break;
}

View File

@ -1,15 +0,0 @@
import TypeWidget from "./type_widget.js";
const TPL = /*html*/`<div class="note-detail-none note-detail-printable"></div>`;
export default class NoneTypeWidget extends TypeWidget {
static getType() {
return "none";
}
doRender() {
this.$widget = $(TPL);
super.doRender();
}
}