chore(react/type_widget): basic integration of web view

This commit is contained in:
Elian Doran
2025-09-19 21:27:45 +03:00
parent daa5ee93e9
commit 071fcb85c9
4 changed files with 43 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ import { TypeWidgetProps } from "./type_widgets/type_widget";
import ProtectedSession from "./type_widgets/ProtectedSession";
import Book from "./type_widgets/Book";
import ContentWidget from "./type_widgets/ContentWidget";
import WebView from "./type_widgets/WebView";
/**
* A `NoteType` altered by the note detail widget, taking into consideration whether the note is editable or not and adding special note types such as an empty one,
@@ -64,6 +65,7 @@ function getCorrespondingWidget(noteType: ExtendedNoteType | undefined, props: T
case "protectedSession": return <ProtectedSession />
case "book": return <Book {...props} />
case "contentWidget": return <ContentWidget {...props} />
case "webView": return <WebView {...props} />
default: break;
}
}