feat: make editor topbar elements linkable

This commit is contained in:
swve 2023-04-26 22:51:11 +02:00
parent 0a38f5bda7
commit 660ffa3b68

View file

@ -30,7 +30,7 @@ interface Editor {
ydoc: any; ydoc: any;
provider: any; provider: any;
activity: any; activity: any;
orgslug : string orgslug: string
course: any; course: any;
setContent: (content: string) => void; setContent: (content: string) => void;
} }
@ -115,8 +115,12 @@ function Editor(props: Editor) {
<EditorTop> <EditorTop>
<EditorDocSection> <EditorDocSection>
<EditorInfoWrapper> <EditorInfoWrapper>
<EditorInfoLearnHouseLogo width={25} height={25} src={learnhouseIcon} alt="" /> <Link href="/">
<EditorInfoThumbnail src={`${getBackendUrl()}content/uploads/img/${props.course.course.thumbnail}`} alt=""></EditorInfoThumbnail> <EditorInfoLearnHouseLogo width={25} height={25} src={learnhouseIcon} alt="" />
</Link>
<Link target="_blank" href={`/course/${course_id}`}>
<EditorInfoThumbnail src={`${getBackendUrl()}content/uploads/img/${props.course.course.thumbnail}`} alt=""></EditorInfoThumbnail>
</Link>
<EditorInfoDocName> <EditorInfoDocName>
{" "} {" "}
<b>{props.course.course.name}</b> <SlashIcon /> {props.activity.name}{" "} <b>{props.course.course.name}</b> <SlashIcon /> {props.activity.name}{" "}