File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ import { MainMenu , WelcomeScreen } from "@excalidraw/excalidraw" ;
12import dynamic from "next/dynamic" ;
23const Excalidraw = dynamic (
34 async ( ) => ( await import ( "@excalidraw/excalidraw" ) ) . Excalidraw ,
@@ -21,7 +22,18 @@ export default function Canvas() {
2122 toggleTheme : false ,
2223 } ,
2324 } }
24- />
25+ >
26+ < MainMenu >
27+ < MainMenu . DefaultItems . SaveAsImage />
28+ < MainMenu . DefaultItems . ClearCanvas />
29+ < MainMenu . DefaultItems . ChangeCanvasBackground />
30+ </ MainMenu >
31+
32+ < WelcomeScreen >
33+ < WelcomeScreen . Hints . MenuHint />
34+ < WelcomeScreen . Hints . ToolbarHint />
35+ </ WelcomeScreen >
36+ </ Excalidraw >
2537 </ div >
2638 ) ;
2739}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const links = [
1818 {
1919 id : 2 ,
2020 name : "Both" ,
21- class : "border-l border-r border-zinc-600 " ,
21+ class : "border-l border-r border-zinc-300 " ,
2222 } ,
2323 {
2424 id : 3 ,
@@ -54,7 +54,7 @@ const Header = ({
5454
5555 { /* selector (doc, both, canvas) */ }
5656 < div >
57- < ul className = "flex items-center text-sm border border-zinc-400 rounded" >
57+ < ul className = "flex items-center text-sm border border-zinc-300 rounded" >
5858 { links . map ( ( link ) => (
5959 < li
6060 key = { link . id }
You can’t perform that action at this time.
0 commit comments