mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
refactor(script/jsx): "react-widget" -> "preact-widget"
This commit is contained in:
@@ -9,7 +9,7 @@ export interface WidgetDefinition {
|
||||
}
|
||||
|
||||
export interface WidgetDefinitionWithType extends WidgetDefinition {
|
||||
type: "react-widget"
|
||||
type: "preact-widget"
|
||||
}
|
||||
|
||||
export const preactAPI = Object.freeze({
|
||||
@@ -24,7 +24,7 @@ export const preactAPI = Object.freeze({
|
||||
*/
|
||||
defineWidget(definition: WidgetDefinition) {
|
||||
return {
|
||||
type: "react-widget",
|
||||
type: "preact-widget",
|
||||
...definition
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user