mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: style updates
This commit is contained in:
parent
85ac404ee7
commit
318bb221aa
9 changed files with 135 additions and 14 deletions
|
|
@ -2,6 +2,7 @@ import { default as React, useEffect, useRef } from "react";
|
|||
import * as Y from "yjs";
|
||||
import { WebrtcProvider } from "y-webrtc";
|
||||
import EditorWithOptions from "./EditorWithOptions";
|
||||
import { IndexeddbPersistence } from 'y-indexeddb'
|
||||
|
||||
// tools
|
||||
|
||||
|
|
@ -14,6 +15,7 @@ function Editor() {
|
|||
|
||||
function createRTCProvider() {
|
||||
const provider = new WebrtcProvider("learnhouse-1", ydoc);
|
||||
|
||||
setYdocState(ydoc);
|
||||
setProviderState(provider);
|
||||
setIsLoading(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue