mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 16:39:02 +01:00
chore(react/type_widget): port none type widget
This commit is contained in:
parent
bbb927c83f
commit
c9fe358811
@ -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;
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user