mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 08:58:58 +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 />
|
return <Empty />
|
||||||
case "doc":
|
case "doc":
|
||||||
return <Doc {...props} />
|
return <Doc {...props} />
|
||||||
|
case "search":
|
||||||
|
return <div className="note-detail-none note-detail-printable" />
|
||||||
default:
|
default:
|
||||||
break;
|
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