mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init mouse movements
This commit is contained in:
parent
2afc6ec5e9
commit
54718d7111
3 changed files with 129 additions and 3 deletions
|
|
@ -58,6 +58,7 @@ interface Editor {
|
|||
ydoc: any
|
||||
hocuspocusProvider: any,
|
||||
isCollabEnabledOnThisOrg: boolean
|
||||
userRandomColor: string
|
||||
setContent: (content: string) => void
|
||||
}
|
||||
|
||||
|
|
@ -142,7 +143,7 @@ function Editor(props: Editor) {
|
|||
provider: props.hocuspocusProvider,
|
||||
user: {
|
||||
name: props.session.user.first_name + ' ' + props.session.user.last_name,
|
||||
color: randomColor({ luminosity: 'light' }),
|
||||
color: props.userRandomColor ,
|
||||
},
|
||||
}),
|
||||
] : []),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue