chore(react/type_widget): port image

This commit is contained in:
Elian Doran
2025-09-19 22:41:18 +03:00
parent aa6e68ad39
commit 0a0d9775b2
4 changed files with 72 additions and 68 deletions

View File

@@ -14,6 +14,7 @@ import ContentWidget from "./type_widgets/ContentWidget";
import WebView from "./type_widgets/WebView";
import "./NoteDetail.css";
import File from "./type_widgets/File";
import Image from "./type_widgets/Image";
/**
* 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,
@@ -70,6 +71,7 @@ function getCorrespondingWidget(noteType: ExtendedNoteType | undefined, props: T
case "contentWidget": return <ContentWidget {...props} />
case "webView": return <WebView {...props} />
case "file": return <File {...props} />
case "image": return <Image {...props} />
default: break;
}
}