mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: make editor topbar elements linkable
This commit is contained in:
parent
0a38f5bda7
commit
660ffa3b68
1 changed files with 7 additions and 3 deletions
|
|
@ -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}{" "}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue