Skip to content

Commit 2112c97

Browse files
change default editor loader
1 parent 0b8b3a7 commit 2112c97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/home/Editor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Button } from "@/components/ui/button";
2+
import { Skeleton } from "@/components/ui/skeleton";
23
import { UseSnippetsReturn } from "@/routes/home/types";
34
import Editor, { OnMount } from "@monaco-editor/react";
45
import Plus from "lucide-react/dist/esm/icons/plus";
@@ -205,6 +206,7 @@ const MonacoEditorComponent: React.FC<EditorProps> = ({
205206
<Editor
206207
width="100%"
207208
height="100%"
209+
loading={<Skeleton className="flex flex-1 w-full h-full" />}
208210
language={language?.id || "plaintext"}
209211
theme={monacoTheme}
210212
value={code}

0 commit comments

Comments
 (0)