feat: style updates

This commit is contained in:
swve 2022-10-28 00:05:13 +02:00
parent 85ac404ee7
commit 318bb221aa
9 changed files with 135 additions and 14 deletions

View file

@ -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);